/* Balise Audit : blanc épuré, anneaux fins verts, boutons noirs arrondis. Mode clair et mode nuit. */
:root,
[data-mode="light"] {
  --bg: #f6f7f6;
  --panel: #ffffff;
  --panel-2: #f6f8f7;
  --ink: #15181a;
  --muted: #646a70;
  --line: #e7eae8;
  --accent: #1fbf8f;
  --accent-light: #9be8cf;
  --accent-soft: #e3f7f0;
  --btn: #15181a;
  --btn-ink: #ffffff;
  --urgent: #e5484d;
  --ameliorer: #e8960c;
  --ok: #12a87a;
  --ring-track: #edf0ee;
  --veil: linear-gradient(180deg, rgba(12, 14, 14, .55), rgba(12, 14, 14, .9));
  --chart-1: #2a78d6; --s-chatgpt: #2a78d6; --s-gemini: #eb6834; --s-claude: #1baf7a;
  /* Textes sur fond teinté et pastilles pleines : contraste suffisant (WCAG AA) */
  --ok-ink: #0a7552; --ameliorer-ink: #8f5300; --urgent-ink: #c4282f; --accent-strong: #0b8a63; --on-accent: #ffffff;
  color-scheme: light;
}
[data-mode="dark"] {
  --bg: #0e1111;
  --panel: #161a1a;
  --panel-2: #121616;
  --ink: #eceeed;
  --muted: #8d9693;
  --line: #252b2a;
  --accent: #36d29f;
  --accent-light: #1f6d55;
  --accent-soft: #15322a;
  --btn: #eceeed;
  --btn-ink: #0e1111;
  --urgent: #ff6369;
  --ameliorer: #f5b13d;
  --ok: #36d29f;
  --ring-track: #232a28;
  --veil: linear-gradient(180deg, rgba(6, 8, 8, .62), rgba(6, 8, 8, .93));
  --chart-1: #3987e5; --s-chatgpt: #3987e5; --s-gemini: #d95926; --s-claude: #199e70;
  --ok-ink: #5fe3b7; --ameliorer-ink: #f7bd5a; --urgent-ink: #ff8a8e; --accent-strong: #36d29f; --on-accent: #06281d;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--bg); color: var(--ink); line-height: 1.5; -webkit-font-smoothing: antialiased; font-weight: 400; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -0.02em; font-weight: 600; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1rem; }
a { color: inherit; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
[hidden] { display: none !important; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
body.no-scroll { overflow: hidden; }

/* ---------- Structure ---------- */
.app { display: grid; grid-template-columns: 288px minmax(0, 1fr); min-height: 100vh; }
.app > * { min-width: 0; }
.side { background: var(--panel); border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; padding: 22px 14px; position: sticky; top: 0; height: 100vh; }
.main { padding: 40px clamp(16px, 4vw, 56px) 64px; max-width: 1180px; width: 100%; margin: 0 auto; }

.wordmark { font-weight: 700; font-size: 1.3rem; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; padding: 0 8px 18px; }
.mark { width: 28px; height: 28px; border-radius: 9px; background: var(--ink); position: relative; flex: none; }
.mark::after { content: ""; position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); left: 9px; top: 9px; box-shadow: 0 0 10px var(--accent); }

.site-switch { position: relative; margin-bottom: 16px; }
.site-btn { display: flex; align-items: center; gap: 10px; width: 100%; border: 1px solid var(--line); background: var(--panel); border-radius: 16px; padding: 8px 10px; cursor: pointer; text-align: left; transition: border-color .15s ease, box-shadow .15s ease; }
.site-btn:hover, .site-switch.open .site-btn { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: 0 0 0 3px var(--accent-soft); }
.site-btn-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.site-btn-t b, .site-item-t b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-btn-t small, .site-item-t small { color: var(--muted); font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-chev { width: 20px; height: 20px; color: var(--muted); flex: none; transition: transform .2s ease; }
.site-chev svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.site-switch.open .site-chev { transform: rotate(180deg); }
.site-av { width: 34px; height: 34px; border-radius: 11px; flex: none; display: grid; place-items: center; position: relative; overflow: hidden;
  background: hsl(var(--h, 160) 55% 92%); color: hsl(var(--h, 160) 45% 32%); font-weight: 700; font-size: .95rem; }
.site-av.has-fav::after { content: ""; position: absolute; inset: 7px; background: var(--fav) center/contain no-repeat; }
.site-av.has-fav i { opacity: 0; }
.site-av.blank { background: var(--panel-2); color: var(--muted); border: 1px dashed var(--line); }
[data-mode="dark"] .site-av:not(.blank) { background: hsl(var(--h, 160) 30% 20%); color: hsl(var(--h, 160) 60% 78%); }
[data-mode="dark"] .site-av.has-fav { background: #f2f4f3; }
.site-av i { font-style: normal; }
.site-menu { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 6px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .18); max-height: min(420px, 70vh); overflow-y: auto; animation: sheet-in .18s ease both; }
.site-menu-t { margin: 6px 10px 4px; font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.site-item { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: transparent; border-radius: 13px; padding: 8px; cursor: pointer; text-align: left; color: var(--ink); }
.site-item:hover { background: var(--panel-2); }
.site-item.on { background: var(--accent-soft); }
.site-item-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.site-score { flex: none; min-width: 34px; height: 26px; padding: 0 8px; border-radius: 99px; display: grid; place-items: center; font-weight: 700; font-size: .82rem; font-variant-numeric: tabular-nums;
  color: color-mix(in srgb, var(--c) 72%, var(--ink)); background: color-mix(in srgb, var(--c) 14%, transparent); }
.site-item.new { border-top: 1px solid var(--line); border-radius: 0 0 13px 13px; margin-top: 4px; padding-top: 10px; }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: transparent; padding: 11px 12px; border-radius: 14px; cursor: pointer; text-align: left; color: var(--muted); }
.nav-item:hover:not(:disabled) { background: var(--panel-2); color: var(--ink); }
.nav-item.active { background: var(--panel-2); color: var(--ink); font-weight: 600; }
.nav-item:disabled { opacity: .5; cursor: default; }
.nav-item.new { margin-top: 12px; border: 1px dashed var(--line); }
.nav-label { flex: 1; white-space: nowrap; }
.pts { font-size: .78rem; font-weight: 600; color: var(--ink); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.pts:not(:empty)::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--accent)); }
.pts.done { color: var(--ok); }
.pts.done::before { display: none; }

.side-bottom { display: flex; flex-direction: column; gap: 10px; }
.note-card { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); background: var(--panel); border-radius: 18px; padding: 12px 14px; cursor: pointer; text-align: left; }
.note-title { display: block; font-size: .9rem; }
.note-gain { display: block; font-weight: 600; color: var(--ok-ink); font-size: .9rem; }
.mode-toggle { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; padding: 8px 12px; border-radius: 12px; cursor: pointer; color: var(--muted); }
.mode-toggle:hover { background: var(--panel-2); color: var(--ink); }

/* ---------- Icônes ---------- */
.ico { width: 20px; height: 20px; display: inline-grid; place-items: center; flex: none; }
.ico svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ico.big { width: 46px; height: 46px; padding: 11px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }

/* ---------- Anneaux fins ---------- */
.ring, .mini-ring, .big-ring { --v: 0; --c: var(--accent); border-radius: 50%; display: grid; place-items: center; position: relative; flex: none;
  background: conic-gradient(var(--c) 0, color-mix(in srgb, var(--c) 55%, var(--panel)) calc(var(--v) * 1%), var(--ring-track) 0); }
.ring::before, .mini-ring::before, .big-ring::before { content: ""; position: absolute; border-radius: 50%; background: var(--panel); }
.ring > *, .mini-ring > *, .big-ring > * { position: relative; }
.mini-ring { width: 48px; height: 48px; }
.mini-ring::before { inset: 4px; }
.mini-ring span { font-weight: 600; font-size: 1.05rem; }
.ring { width: 84px; height: 84px; }
.ring::before { inset: 7px; }
.ring span { font-weight: 600; font-size: 1.7rem; letter-spacing: -0.03em; }
.ring.xl { width: 128px; height: 128px; }
.ring.xl::before { inset: 11px; }
.ring.xl span { font-size: 2.6rem; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--panel); border-radius: 99px; padding: 10px 18px; font-weight: 500; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: var(--ink); }
.btn.primary { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); font-weight: 600; }
.btn.primary:hover { opacity: .88; }
.btn.small { padding: 6px 14px; font-size: .85rem; }

/* ---------- Formulaire ---------- */
.start { max-width: 760px; margin: 6vh auto 0; }
.start h1 { font-size: 2.4rem; }
.lead { color: var(--muted); font-size: 1.05rem; margin: 10px 0 26px; max-width: 62ch; }
.start-form { background: var(--panel); border: 1px solid var(--line); border-radius: 26px; padding: 18px; }
.url-row { display: flex; gap: 10px; }
.url-row input { flex: 1; font-size: 1.1rem; padding: 14px 20px; border-radius: 99px; }
.url-row .btn { padding: 14px 28px; font-size: 1rem; }
.opt-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.opt-row input { width: 100%; min-width: 0; }
.opt-row .opt-wide { grid-column: 1 / -1; }
.opt-hint { font-weight: 400; opacity: .8; }
/* Lien Google Maps collé dans une carte (Accueil, Fiche Google) */
.place-lien { margin-top: 14px; display: grid; gap: 8px; }
.place-lien-row { display: flex; gap: 10px; align-items: center; }
.place-lien-row input { flex: 1; min-width: 0; }
@media (max-width: 640px) { .place-lien-row { flex-direction: column; align-items: stretch; } }
label { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; font-weight: 500; color: var(--muted); }
label.inline { flex-direction: row; align-items: center; gap: 8px; }
input, select { padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel-2); }
input::placeholder { color: var(--muted); opacity: .7; }
.loading { display: flex; align-items: center; gap: 12px; margin-top: 18px; font-weight: 500; }
.spinner { width: 20px; height: 20px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.error { color: var(--urgent); font-weight: 500; margin-top: 14px; }
.recent { margin-top: 38px; }
.recent h2 { font-size: 1rem; margin-bottom: 12px; }
.recent ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.recent button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 14px 18px; cursor: pointer; text-align: left; }
.recent button:hover { border-color: var(--ink); }
.recent strong { font-weight: 600; }
.score-chip { font-weight: 600; border-radius: 99px; padding: 2px 10px; font-size: .85rem; color: var(--ink); background: color-mix(in srgb, var(--c, var(--accent)) 18%, transparent); border: 1px solid color-mix(in srgb, var(--c, var(--accent)) 55%, transparent); font-variant-numeric: tabular-nums; }

/* ---------- Accueil ---------- */
.browser { background: var(--panel); border: 1px solid var(--line); border-radius: 26px; overflow: hidden; }
.browser-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.url-pill { flex: 1; min-width: 0; background: var(--panel-2); border: 1px solid var(--line); border-radius: 99px; padding: 5px 14px; font-size: .85rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cms-chip { font-size: .8rem; font-weight: 600; border: 1px solid var(--line); border-radius: 99px; padding: 4px 12px; white-space: nowrap; }
.shot { position: relative; min-height: 460px; display: grid; place-items: center; overflow: hidden; background: #111414; margin: 0 8px 8px; border-radius: 20px; }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.shot-fallback { position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 20%, rgba(54, 210, 159, .18), transparent 55%), #111414; }
.shot-veil { position: absolute; inset: 0; background: var(--veil); }
.shot-content { position: relative; text-align: center; color: #fff; padding: 40px 24px; max-width: 760px; }
/* Une seule note en grand (moitié SEO, moitié IA), les deux notes en petit dessous, cliquables. */
.big-ring { width: 178px; height: 178px; margin: 0 auto 12px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: conic-gradient(var(--c, #36d29f) 0, color-mix(in srgb, var(--c, #36d29f) 60%, #fff) calc(var(--v) * 1%), rgba(255, 255, 255, .14) 0); }
.big-ring::before { inset: 12px; background: #121616; }
.big-ring span { font-size: 4rem; font-weight: 600; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.big-ring small { position: relative; margin-top: 6px; font-weight: 500; font-size: .9rem; color: rgba(255, 255, 255, .78); }
.hero-moitie { margin: 0 0 14px; font-size: .82rem; color: rgba(255, 255, 255, .62); }
.hero-parts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 12px; width: min(100%, 680px); margin: 0 auto 18px; }
.part { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 8px 14px 8px 8px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .07); color: #fff; font: inherit; text-align: left; cursor: pointer; transition: background .15s, border-color .15s; }
.part:hover { background: rgba(255, 255, 255, .13); border-color: rgba(255, 255, 255, .3); }
.part:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.part-ring { --v: 0; --c: var(--accent); position: relative; flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--c) 0, color-mix(in srgb, var(--c) 60%, #fff) calc(var(--v) * 1%), rgba(255, 255, 255, .14) 0); }
.part-ring::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #121616; }
.part-ring span { position: relative; font-weight: 600; font-size: 1.15rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.part-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.part-t b { font-weight: 600; font-size: .98rem; }
.part-t small { font-size: .8rem; color: rgba(255, 255, 255, .66); }
.part-go { margin-left: 2px; font-size: 1.35rem; line-height: 1; color: rgba(255, 255, 255, .5); }
.shot-content h1 { font-size: 2.2rem; color: #fff; }
.hero-meta { color: rgba(255, 255, 255, .7); margin: 8px 0 14px; font-size: .95rem; }
.hero-summary { font-size: 1.08rem; line-height: 1.6; color: #fff; margin: 0; }

.score-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0; }
.score-card { background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; text-align: left; cursor: pointer; }
.score-card:hover { border-color: var(--ink); }
.score-card .top { display: flex; justify-content: space-between; align-items: center; font-weight: 500; }
.score-card .num { font-size: 2.4rem; font-weight: 600; line-height: 1; letter-spacing: -0.04em; }
.score-card .num small { font-size: .95rem; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.score-card .sub { color: var(--muted); font-size: .9rem; }

.card-block { background: var(--panel); border: 1px solid var(--line); border-radius: 26px; padding: 24px; }
.block-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 18px; }
.block-head p { margin: 4px 0 0; }

.plan-group { border: 1px solid var(--line); border-radius: 18px; margin-bottom: 10px; overflow: hidden; }
.plan-head { width: 100%; display: flex; align-items: center; gap: 12px; padding: 15px 18px; background: transparent; border: 0; cursor: pointer; text-align: left; }
.plan-head .ico { color: var(--muted); }
.plan-head h3 { flex: none; font-weight: 600; }
.plan-head .state { flex: 1; color: var(--muted); font-size: .9rem; }
.badge { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 99px; display: inline-grid; place-items: center; font-size: .8rem; font-weight: 600; background: var(--panel-2); border: 1px solid var(--line); }
.check { width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: .8rem; font-weight: 700; }
.chev { transition: transform .2s; color: var(--muted); }
.plan-group.open .chev { transform: rotate(180deg); }
.plan-rows { display: none; border-top: 1px solid var(--line); }
.plan-group.open .plan-rows { display: block; }
.plan-row { display: flex; align-items: center; gap: 14px; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.plan-row:last-child { border-bottom: 0; }
.plan-row .what { flex: 1; min-width: 0; }
.plan-row .what strong { display: block; font-weight: 500; }
.plan-row .what span { font-size: .85rem; color: var(--muted); }

/* ---------- Sections ---------- */
.page-title { font-size: 2.3rem; margin-bottom: 22px; }
.note-hero { display: flex; gap: 28px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 28px; padding: 24px 28px; margin-bottom: 22px; }
.note-hero-text p { margin: 0; }
.note-hero-text h2 { font-size: 1.6rem; margin: 4px 0 12px; }
.note-hero-text .small { margin-top: 12px; max-width: 70ch; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 99px; padding: 5px 12px; font-size: .88rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.urgent { background: var(--urgent); } .dot.ameliorer { background: var(--ameliorer); } .dot.ok { background: var(--ok); }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.section-title { display: flex; gap: 14px; align-items: center; max-width: 70ch; }
.section-title p { margin: 4px 0 0; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs { display: flex; gap: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 99px; padding: 4px; }
.tabs button { border: 0; background: transparent; border-radius: 99px; padding: 8px 16px; cursor: pointer; font-weight: 500; color: var(--muted); }
.tabs button.active { background: var(--btn); color: var(--btn-ink); }
.count { opacity: .7; margin-left: 2px; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 26px; padding: 22px 24px; margin-bottom: 14px; position: relative; }
.card.flash { outline: 2px solid var(--accent); outline-offset: 2px; }
.card-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.card-head h3 { font-size: 1.1rem; display: flex; align-items: center; gap: 10px; }
.card-head h3::before { content: ""; width: 20px; height: 20px; border-radius: 50%; flex: none; border: 1.5px solid currentColor; }
.card.urgent .card-head h3::before { border-color: var(--urgent); background: color-mix(in srgb, var(--urgent) 12%, transparent); }
.card.ameliorer .card-head h3::before { border-color: var(--ameliorer); background: color-mix(in srgb, var(--ameliorer) 12%, transparent); }
.card.ok .card-head h3::before { border-color: var(--ok); background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312a87a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/12px no-repeat; }
.head-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.card p { margin: 8px 0 0; }
.card > p, .card-block > p, .card-block .block-head p, .card-block p.muted, .view > p.muted, .wp-steps p, .faq-list p { max-width: 70ch; }
.why { color: var(--muted); font-size: .92rem; }
.level { font-size: .78rem; font-weight: 600; padding: 3px 11px; border-radius: 99px; white-space: nowrap; }
.level.urgent { color: var(--urgent-ink); background: color-mix(in srgb, var(--urgent) 12%, transparent); }
.level.ameliorer { color: var(--ameliorer-ink); background: color-mix(in srgb, var(--ameliorer) 14%, transparent); }
.level.ok { color: var(--ok-ink); background: var(--accent-soft); }
.fix { margin-top: 16px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; }
.fix-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; flex-wrap: wrap; }
.fix-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.fix pre { white-space: pre-wrap; word-break: break-word; margin: 10px 0 0; font-size: .95rem; font-family: inherit; }
.fix pre.code { font-family: ui-monospace, Consolas, monospace; font-size: .82rem; }
details { margin-top: 12px; }
summary { cursor: pointer; font-weight: 500; }
details ol { margin: 10px 0 0; padding-left: 22px; }
details li { margin-bottom: 6px; }
.empty { text-align: center; padding: 44px 20px; color: var(--muted); background: var(--panel); border: 1px dashed var(--line); border-radius: 24px; }

/* ---------- Aperçus intégrés ---------- */
.inline-preview { margin-top: 16px; position: relative; }
.inline-preview .expand { position: absolute; top: 9px; right: 14px; }
.browser.framed { border-radius: 22px; background: var(--panel-2); }
.browser.framed .url-pill { background: var(--panel); }
.frame-wrap { position: relative; height: min(62vh, 640px); background: #fff; margin: 0 8px 8px; border-radius: 14px; overflow: hidden; }
.browser.framed.inline .frame-wrap { height: 380px; }
.browser.framed.inline .browser-bar { padding-right: 110px; }
.frame-wrap iframe { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.frame-loading { position: absolute; inset: 0; display: flex; gap: 10px; align-items: center; justify-content: center; color: #6b7178; font-weight: 500; background: #fff; }

.serp-compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.tag-now, .tag-after { display: inline-block; font-size: .8rem; font-weight: 600; border-radius: 99px; padding: 3px 11px; margin-bottom: 10px; }
.tag-now { background: color-mix(in srgb, var(--urgent) 12%, transparent); color: var(--urgent-ink); }
.tag-after { background: var(--accent-soft); color: var(--ok-ink); }
.g-result { background: #fff; color: #202124; border: 1px solid #e3e6e4; border-radius: 18px; padding: 16px 18px; font-family: Arial, sans-serif; }
.g-site { display: flex; gap: 10px; align-items: center; font-size: 14px; line-height: 1.3; margin-bottom: 8px; }
.g-site small { color: #4d5156; font-size: 12px; }
.g-fav { width: 28px; height: 28px; border-radius: 50%; background: #f1f3f4; display: grid; place-items: center; font-weight: 700; color: #15181a; flex: none; }
.g-title { color: #1a0dab; font-size: 20px; line-height: 1.3; margin-bottom: 4px; }
.g-desc { color: #4d5156; font-size: 14px; line-height: 1.58; }
.g-desc.missing { font-style: italic; color: #c5221f; }
mark.kw { background: none; color: inherit; text-decoration: underline; text-decoration-color: #1fbf8f; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.kw-chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.kw-label { font-size: .75rem; font-weight: 600; color: var(--muted); margin-right: 4px; letter-spacing: .02em; }
.kw-chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--panel-2); border-radius: 99px; padding: 4px 12px; font-size: .85rem; }
.kw-chip i { width: 12px; height: 3px; border-radius: 3px; background: var(--accent); }
.kw-chip.off { color: var(--muted); }
.kw-chip.off i { background: var(--urgent); }

.robots { background: var(--panel-2); border: 1px solid var(--line); border-radius: 18px; padding: 10px 0; overflow: auto; max-height: 300px; }
.rl { display: flex; align-items: center; gap: 12px; padding: 2px 16px; }
.rl code { font-family: ui-monospace, Consolas, monospace; font-size: .88rem; white-space: pre; }
.rl.bad { background: color-mix(in srgb, var(--urgent) 14%, transparent); }
.rl.bad code { color: var(--urgent); font-weight: 700; }
.rl.who code { font-weight: 700; }
.rl-tag { font-size: .8rem; font-weight: 600; color: var(--urgent); white-space: nowrap; }

.addr { display: flex; align-items: center; gap: 10px; background: #f1f3f4; color: #202124; border-radius: 99px; padding: 10px 16px; font-family: Arial, sans-serif; font-size: 15px; }
.addr .ico { width: 18px; height: 18px; }
.addr.unsafe b, .addr.unsafe .ico { color: #c5221f; }
.addr.secure .ico { color: #188038; }

.phone { width: 300px; margin: 0 auto 12px; border: 10px solid #15181a; border-radius: 38px; overflow: hidden; background: #fff; }
.phone-screen { width: 280px; height: 540px; overflow: hidden; position: relative; }
.phone-screen iframe { width: 980px; height: 1890px; border: 0; transform: scale(.2857); transform-origin: 0 0; position: absolute; top: 0; left: 0; }
.phone.small { width: 220px; border-width: 8px; border-radius: 30px; }
.phone.small .phone-screen { width: 204px; height: 380px; }
.phone.small .phone-screen iframe { transform: scale(.2082); }
/* Site prévu pour mobile : affiché à la vraie largeur d'un téléphone (390 px), pour voir ce qui déborde. */
.phone-screen.vw390 iframe { width: 390px; height: 752px; transform: scale(.7179); }
.phone.small .phone-screen.vw390 iframe { height: 727px; transform: scale(.5231); }

.kp { background: var(--panel-2); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; }
.kp-name { font-weight: 600; font-size: 1.15rem; margin-bottom: 8px; }
.kp-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); font-size: .92rem; }
.kp-row span { color: var(--muted); }
.kp-row b { font-weight: 600; }
.kp-row b.todo { color: var(--ameliorer-ink); }
.empty-kp { color: var(--muted); text-align: center; padding: 34px 18px; border-style: dashed; }
.invisible { display: flex; gap: 16px; align-items: center; background: var(--panel-2); border: 1px dashed var(--line); border-radius: 18px; padding: 22px; }
.invisible p { margin: 0; font-size: 1.02rem; }

/* ---------- Pages Fiche Google et ChatGPT ---------- */
.questions, .checklist { list-style: none; margin: 0; padding: 0; }
.questions li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.questions li:last-child, .checklist li:last-child { border-bottom: 0; }
.checklist li { border-bottom: 1px solid var(--line); }
.checklist label { flex-direction: row; align-items: center; gap: 12px; padding: 14px 0; color: var(--ink); font-weight: 400; font-size: 1rem; cursor: pointer; }
.checklist input { width: 20px; height: 20px; accent-color: var(--accent); padding: 0; }
.pages-note { margin-top: 28px; word-break: break-all; }

/* ---------- Fenêtre d'aperçu agrandi ---------- */
.modal { position: fixed; inset: 0; z-index: 20; background: rgba(10, 12, 12, .55); display: grid; place-items: center; padding: 24px; }
.modal-box { background: var(--panel); color: var(--ink); width: min(1120px, 100%); max-height: calc(100vh - 48px); border-radius: 28px; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); }
.modal-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.modal-head p { margin: 4px 0 0; }
.modal-body { padding: 20px 24px; overflow: auto; flex: 1; }
.modal-foot { display: flex; gap: 8px; justify-content: flex-end; padding: 14px 24px; border-top: 1px solid var(--line); flex-wrap: wrap; }

.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--btn); color: var(--btn-ink); padding: 10px 20px; border-radius: 99px; font-weight: 600; z-index: 30; max-width: min(640px, calc(100vw - 32px)); text-align: center; }
.toast[popover] { inset: auto auto 22px 50%; margin: 0; border: 0; overflow: visible; width: max-content; height: auto; }
.maj-bandeau { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 40; display: flex; align-items: center; gap: 14px; width: max-content; max-width: min(640px, calc(100vw - 32px)); padding: 10px 10px 10px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--ink); box-shadow: 0 12px 32px rgba(0, 0, 0, .14); font-weight: 500; }
.maj-bandeau .btn { flex: none; }
/* Sur ordinateur : centré au-dessus du contenu (à droite du menu), les petites notifications passent dessous. */
@media (min-width: 861px) {
  .maj-bandeau { left: calc(50% + 144px); max-width: min(560px, calc(100vw - 340px)); }
  body:has(#maj-bandeau) .pops { top: 96px; }
}
@media (max-width: 560px) { .maj-bandeau { flex-direction: column; align-items: stretch; text-align: center; padding: 12px; } }
body:has(dialog[open]) .toast[popover] { bottom: 96px; }
.print-area { display: none; }

/* ---------- Téléphone ---------- */
@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { position: sticky; top: 0; z-index: 5; height: auto; padding: 10px 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .side-top { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
  .wordmark { padding: 0; font-size: 1.15rem; }
  .site-switch { margin: 0; }
  .nav { flex-direction: row; overflow-x: auto; gap: 4px; scrollbar-width: none; max-width: 100%; min-width: 0; }
  .nav-item { width: auto; white-space: nowrap; padding: 8px 12px; flex: none; }
  .nav-item.new { margin-top: 0; }
  .pts { display: none; }
  .side-bottom { position: absolute; top: 8px; right: 12px; flex-direction: row; gap: 4px; }
  /* L'en-tête reste collé en haut : ce qu'on fait défiler jusqu'à lui (formulaire, bloc ouvert) s'arrête juste dessous. */
  html { scroll-padding-top: 176px; }
  .note-card { display: none; }
  .mode-toggle span:last-child { display: none; }
  .main { padding: 20px 14px 48px; }
  .start { margin-top: 2vh; }
  .start h1 { font-size: 1.8rem; }
  .url-row { flex-direction: column; }
  .opt-row { grid-template-columns: 1fr; }
  .score-cards { grid-template-columns: 1fr; }
  .shot { min-height: 420px; }
  .big-ring { width: 146px; height: 146px; }
  .big-ring::before { inset: 10px; }
  .big-ring span { font-size: 3.2rem; }
  .hero-parts { width: min(100%, 340px); }
  .shot-content h1 { font-size: 1.6rem; }
  .hero-summary { font-size: 1rem; }
  .plan-row { flex-direction: column; align-items: flex-start; }
  .page-title { font-size: 1.8rem; }
  .note-hero { flex-direction: column; align-items: flex-start; padding: 20px; gap: 16px; }
  .note-hero-text h2 { font-size: 1.3rem; }
  .card { padding: 18px; border-radius: 22px; }
  .card-head { flex-direction: column; }
  .head-right { justify-content: flex-start; }
  .browser.framed.inline .frame-wrap { height: 300px; }
  .modal { padding: 0; }
  .modal-box { max-height: 100vh; height: 100vh; border-radius: 0; }
  .frame-wrap { height: 58vh; }
}

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- Rapport PDF : toujours clair ---------- */
@media print {
  :root, [data-mode] { --bg: #fff; --panel: #fff; --panel-2: #f6f8f7; --ink: #15181a; --muted: #6b7178; --line: #e1e5e3;
    --urgent: #e5484d; --ameliorer: #e8960c; --ok: #12a87a; --ring-track: #edf0ee; --accent: #1fbf8f; --accent-light: #9be8cf; --accent-soft: #e3f7f0; }
  body { background: #fff; }
  .app, .toast, .modal { display: none !important; }
  .print-area { display: block; font-size: 11pt; }
  .p-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--ink); padding-bottom: 8px; margin-bottom: 16px; }
  .p-summary { display: flex; gap: 20px; align-items: center; border: 1px solid var(--line); border-radius: 18px; padding: 16px; margin-bottom: 16px; break-inside: avoid; }
  .p-rings { display: flex; gap: 14px; text-align: center; }
  .p-rings small { display: block; margin-top: 4px; font-size: .75rem; color: var(--muted); }
  .p-scores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
  .p-scores div { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
  .p-scores b { font-size: 1.5rem; font-weight: 600; }
  .p-prog { width: 100%; border-collapse: collapse; margin: 6px 0 12px; font-size: 10pt; break-inside: avoid; font-variant-numeric: tabular-nums; }
  .p-prog th { text-align: left; font-weight: 500; color: var(--muted); border-bottom: 1px solid var(--ink); padding: 4px 8px; }
  .p-prog td { padding: 5px 8px; border-bottom: 1px solid var(--line); }
  .print-area h2 { margin: 18px 0 8px; }
  .print-area .card { break-inside: avoid; padding: 16px 18px; }
  .print-area .card-head { flex-direction: row; }
  .ready { color: var(--ok); font-weight: 600; font-size: .9rem; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- Présence IA ---------- */
.ai-setup { margin-bottom: 18px; }
.engine-row { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.engine-row:first-child { border-top: 0; }
.engine-name { display: flex; align-items: center; gap: 12px; min-width: 210px; }
.engine-name strong { display: block; font-weight: 600; }
.engine-name .on { color: var(--ok); font-weight: 500; }
.engine-row input { flex: 1; min-width: 0; }
.engine-logo { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 700; flex: none; border: 1px solid var(--line); background: var(--panel-2); }
.engine-logo.gpt { background: #15181a; color: #fff; border-color: #15181a; }
.engine-logo.gem { color: #4a7cf0; }
.engine-logo.tiny { width: 20px; height: 20px; font-size: .7rem; }
.help { margin: 0 0 8px 0; font-size: .92rem; }
.help ol { color: var(--muted); }
.setup-actions { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
textarea { width: 100%; font: inherit; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel-2); color: var(--ink); resize: vertical; line-height: 1.7; }
textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.run-row { display: flex; align-items: center; gap: 16px; margin-top: 14px; flex-wrap: wrap; }
.run-row .btn { margin-left: auto; }
.check-inline { flex-direction: row; align-items: center; gap: 8px; color: var(--ink); font-size: .95rem; cursor: pointer; }
.check-inline input { width: 18px; height: 18px; padding: 0; accent-color: var(--accent); }
.chip.up { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.chip.down { color: var(--urgent); border-color: color-mix(in srgb, var(--urgent) 40%, transparent); }
.chip.muted { color: var(--muted); }
#ai-results .card-block { margin-top: 18px; }
#ai-results h2 { margin-bottom: 4px; }
.conc { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; }
.conc .rank { width: 24px; height: 24px; border-radius: 50%; background: var(--panel-2); border: 1px solid var(--line); display: grid; place-items: center; font-size: .8rem; font-weight: 600; flex: none; }
.ai-qs { display: grid; gap: 12px; margin-top: 14px; }
.ai-q { border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; }
.ai-q-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.ai-q-head strong { font-weight: 600; }
.ai-engines { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.ai-cell { background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.ai-cell-top { display: flex; align-items: center; gap: 8px; }
.ai-cell-top .level { margin-left: auto; }
.ai-cell p { margin: 8px 0 0; }
.error-text { color: var(--urgent); }
.ai-answer { display: none; margin-top: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.ai-answer pre { white-space: pre-wrap; word-break: break-word; font-family: inherit; font-size: .9rem; margin: 0; max-height: 320px; overflow: auto; }
.ai-answer a { color: var(--ok); }
.ai-q.show-answers .ai-answer { display: block; }
.ai-q > .btn { margin-top: 12px; }
@media (max-width: 860px) {
  .engine-row { flex-direction: column; align-items: stretch; }
  .run-row .btn { margin-left: 0; width: 100%; justify-content: center; }
}

/* ---------- Supprimer une analyse ---------- */
.recent-item { display: flex; gap: 8px; align-items: stretch; }
.recent .recent-item .recent-open { flex: 1; width: auto; min-width: 0; }
.recent .recent-del { flex: none; width: 52px; padding: 0; justify-content: center; border: 1px solid var(--line); background: var(--panel); border-radius: 18px; cursor: pointer; color: var(--muted); display: grid; place-items: center; }
.recent-del svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.recent .recent-del:hover { color: var(--urgent); border-color: var(--urgent); }

/* ---------- Tarifs ---------- */
.pricing-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.pricing-intro .lead { margin: 0; }
.billing-switch { display: flex; gap: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 99px; padding: 4px; }
.billing-switch button { border: 0; background: transparent; border-radius: 99px; padding: 8px 16px; cursor: pointer; font-weight: 500; color: var(--muted); display: inline-flex; gap: 8px; align-items: center; }
.billing-switch button.active { background: var(--btn); color: var(--btn-ink); }
.billing-switch .save { font-size: .75rem; font-weight: 600; color: var(--ok-ink); background: var(--accent-soft); border-radius: 99px; padding: 2px 8px; }
.plans { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 16px; margin-bottom: 22px; max-width: 1180px; align-items: stretch; }
.plan-badge { position: absolute; top: -12px; left: 24px; background: var(--accent); color: var(--btn-ink); font-size: .75rem; font-weight: 600; border-radius: 99px; padding: 4px 12px; }
.contact-block { max-width: 1180px; animation: rise .35s ease both; }
.contact-form .full { grid-column: 1 / -1; }
.contact-form textarea { line-height: 1.5; font-weight: 400; }
.contact-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.contact-pref { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.contact-pref legend { font-size: .85rem; font-weight: 500; color: var(--muted); margin-bottom: 6px; padding: 0; }
.contact-pref .cx-option { align-items: center; gap: 8px; padding: 11px 12px; border-radius: 14px; font-size: .92rem; }
.contact-pref .cx-option input { margin-top: 0; }
.contact-pref .cx-option, .contact-pref .cx-option b { color: var(--ink); }
.ask-band { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; max-width: 1180px; margin: 18px 0 0; border: 1px dashed var(--line); border-radius: 24px; padding: 18px 24px; background: var(--panel); }
.ask-band > div { display: flex; flex-direction: column; gap: 2px; }
.contact-ok { display: flex; align-items: center; gap: 14px; padding: 6px 0; }
.contact-ok > div { display: flex; flex-direction: column; gap: 2px; }
.contact-ok-ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--ok-ink); font-weight: 700; font-size: 1.2rem; animation: pop-in .45s ease both; }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: 28px; padding: 26px 24px; display: flex; flex-direction: column; position: relative; }
.plan.top { border: 2px solid var(--accent); }
.plan h2 { font-size: 1.3rem; }
.plan > p { margin: 4px 0 0; }
.plan-price { margin-top: 18px; }
.plan-price .amount { font-size: 2.6rem; font-weight: 600; letter-spacing: -0.04em; }
.plan-bill { margin: 2px 0 0; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 10px; flex: 1; align-content: start; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.plan li .ico { width: 18px; height: 18px; color: var(--ok); margin-top: 2px; }
.plan-cta { justify-content: center; width: 100%; }
.plan-cta:disabled { opacity: .55; cursor: default; }
.faq-block h2 { margin-bottom: 6px; }
.faq-list details { border-bottom: 1px solid var(--line); padding: 12px 0; margin: 0; }
.faq-list details:last-child { border-bottom: 0; }
.faq-list p { margin: 8px 0 0; }
@media (max-width: 1100px) { .plans { grid-template-columns: 1fr; max-width: 560px; } }
.pts:empty { display: none; }

/* ---------- Classement et plan pour monter ---------- */
.engine-logo.cla { color: #d97757; }
.board { display: grid; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.board-row { display: grid; grid-template-columns: 44px minmax(0, 2.2fr) 80px 110px 90px minmax(90px, 1fr); gap: 12px; align-items: center; padding: 11px 16px; border-top: 1px solid var(--line); font-size: .95rem; }
.board-row:first-child { border-top: 0; }
.board-row.head { background: var(--panel-2); font-size: .8rem; font-weight: 600; color: var(--muted); }
.board-row .rank { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; background: var(--panel-2); border: 1px solid var(--line); font-size: .85rem; }
.board-row.head .rank, .board-row.head span { background: none; border: 0; }
.board-row .who { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-row .by { display: flex; gap: 4px; }
.board-row .pts-col { display: flex; align-items: center; gap: 10px; }
.board-row .pts-col .trk { flex: 1; min-width: 40px; height: 6px; }
.board-row .pts-col i { display: block; height: 6px; border-radius: 99px; background: var(--accent); }
.board-row.you { background: var(--accent-soft); }
.board-row.you .rank { background: var(--accent-strong); color: var(--on-accent); border-color: var(--accent-strong); }
.you-tag { font-size: .72rem; font-weight: 600; color: var(--on-accent); background: var(--accent-strong); border-radius: 99px; padding: 2px 8px; margin-left: 6px; vertical-align: 1px; }
.board-note { margin: 14px 0 0; }
.climb { margin: 16px 0 0; padding-left: 22px; display: grid; gap: 16px; }
.climb > li::marker { font-weight: 700; color: var(--ok); }
.climb h3 { font-size: 1.02rem; }
.climb p { margin: 4px 0 0; }
.climb ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 6px; }
.climb ul li .btn { margin-left: 6px; }
.climb ul li .level { margin-right: 6px; }
.climb a { color: var(--ok); }
@media (max-width: 860px) {
  .board-row { grid-template-columns: 34px minmax(0, 1fr) 70px; }
  .board-row > :nth-child(4), .board-row > :nth-child(5), .board-row > :nth-child(6) { display: none; }
}

/* ---------- Site du client en fond ---------- */
.shot { --shot-scale: .8; min-height: 520px; }
.shot-frame { position: absolute; top: 0; left: 50%; width: 1440px; height: 1800px; border: 0; transform: translateX(-50%) scale(var(--shot-scale)); transform-origin: top center; pointer-events: none; background: #fff; }
.shot-veil { background: radial-gradient(ellipse at center, rgba(10, 12, 12, .82), rgba(10, 12, 12, .62) 75%), linear-gradient(180deg, rgba(10, 12, 12, .35), rgba(10, 12, 12, .7)); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.hero-kicker { margin: 0 0 14px; font-size: .8rem; font-weight: 600; letter-spacing: .08em; color: rgba(255, 255, 255, .8); text-transform: uppercase; }

/* ---------- À corriger en premier ---------- */
.first-block { margin: 26px 0 22px; }
.first-block > h2 { font-size: 1.35rem; }
.first-block > p { margin: 4px 0 14px; }
.gain-hero { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--line); border-radius: 26px; padding: 20px 26px; margin-bottom: 14px; }
.gain-label { margin: 0 0 8px; font-size: .78rem; font-weight: 600; letter-spacing: .04em; color: var(--muted); text-transform: uppercase; }
.gain-pill { display: inline-block; background: var(--btn); color: var(--btn-ink); font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; border-radius: 99px; padding: 2px 18px; margin-right: 6px; }
.gain-side { max-width: 46ch; text-align: right; margin: 0; }
.gain-main { max-width: 46ch; }
.gain-an { margin: 10px 0 0; font-size: 1.02rem; }
.gain-an b { font-variant-numeric: tabular-nums; }
.gain-detail { margin: 4px 0 0; }
.gain-valeur { margin: 6px 0 0; color: var(--accent-strong); font-weight: 500; }
.gain-valeur:empty { display: none; }
.channel-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.channel { background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 18px 20px; display: flex; flex-direction: column; gap: 2px; text-align: left; cursor: pointer; }
.channel:hover { border-color: var(--ink); }
.channel .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.channel .num { font-size: 2.1rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1.1; }
.channel .unit { font-size: .78rem; font-weight: 600; letter-spacing: .03em; color: var(--muted); text-transform: uppercase; }
.channel .sub { font-size: .85rem; margin-top: 8px; }
.channel.muted-card .num { color: var(--muted); }
.engine-logo.goo { background: #fff; color: #4285f4; font-weight: 800; }

/* ---------- Cartes par IA ---------- */
.eng-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin-top: 14px; }
.eng-card { border: 1px solid var(--line); border-radius: 26px; padding: 18px; background: var(--panel); min-width: 0; display: flex; flex-direction: column; }
.eng-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.eng-head h3 { font-size: 1.12rem; margin: 0 4px 0 2px; }
.eng-pill { font-size: .7rem; font-weight: 700; letter-spacing: .04em; border-radius: 99px; padding: 3px 9px; line-height: 1.3; }
.eng-pill.measured { text-transform: uppercase; color: var(--ok-ink); background: var(--accent-soft); }
.eng-pill.off { color: var(--urgent); background: color-mix(in srgb, var(--urgent) 12%, transparent); font-size: .78rem; letter-spacing: 0; font-weight: 600; }
.eng-pill.on { color: var(--ok-ink); background: var(--accent-soft); font-size: .78rem; letter-spacing: 0; font-weight: 600; }
.eng-list { background: var(--panel-2); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px 12px; flex: 1; }
.eng-list-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.eng-tag { display: inline-block; font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); background: color-mix(in srgb, var(--ink) 8%, transparent); border-radius: 6px; padding: 3px 7px; }
.eng-sub { margin: 6px 0 0; font-size: .85rem; color: var(--muted); }
.eng-rank { font-weight: 700; font-size: 1.15rem; flex: none; }
.eng-rank.off { font-size: .75rem; font-weight: 500; color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 3px 8px; }
.eng-list ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; }
.eng-list li { display: flex; gap: 14px; align-items: center; padding: 6px 8px; border-radius: 10px; font-size: .95rem; }
.eng-list li .n { width: 20px; text-align: right; color: var(--muted); font-weight: 700; font-size: .85rem; flex: none; }
.eng-list li .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eng-list li.you { background: var(--accent-soft); font-weight: 700; }
.eng-empty { margin: 8px 0 4px; font-size: .9rem; color: var(--muted); }
.eng-you-out { margin: 10px 8px 0; font-size: .85rem; color: var(--muted); }
.eng-card.locked .eng-lock { background: var(--panel-2); border: 1px dashed var(--line); border-radius: 16px; padding: 26px 18px; text-align: center; }
.eng-card.locked p { margin: 0 0 12px; }
@media (max-width: 1100px) { .channel-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .gain-side { text-align: left; }
  .shot { min-height: 480px; }
}
@media print { .shot-frame { display: none; } }


/* ---------- Trafic ---------- */
.lead.tight { margin: -12px 0 22px; }
#view-trafic .card-block { margin-bottom: 18px; }
.periods { display: flex; border: 1px solid var(--line); border-radius: 99px; overflow: hidden; background: var(--panel); }
.periods button { border: 0; background: transparent; padding: 8px 14px; cursor: pointer; font-weight: 500; color: var(--muted); border-left: 1px solid var(--line); }
.periods button:first-child { border-left: 0; }
.periods button.active { background: var(--btn); color: var(--btn-ink); }
.src-line { margin-bottom: 12px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; margin-bottom: 18px; }
.kpi { display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 14px 18px; border: 0; border-left: 1px solid var(--line); background: var(--panel); }
.kpi:first-child { border-left: 0; }
.kpi.selectable { cursor: pointer; }
.kpi.selectable:hover { background: var(--panel-2); }
.kpi.on { background: var(--panel-2); box-shadow: inset 0 -3px 0 var(--chart-1); }
.kpi:disabled { color: inherit; opacity: 1; cursor: default; }
.kpi-label { font-size: .85rem; color: var(--muted); }
.kpi-val { font-size: 1.8rem; font-weight: 700; letter-spacing: -0.03em; }
.delta { font-size: .82rem; font-weight: 600; }
.delta.up { color: var(--ok-ink); } .delta.down { color: var(--urgent-ink); }
.chart-title { margin-bottom: 6px; }
.chart-wrap { position: relative; }
.chart-wrap svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-wrap .cg { stroke: var(--line); stroke-width: 1; }
.chart-wrap .cy, .chart-wrap .cx { fill: var(--muted); font-size: 11px; font-family: inherit; }
.chart-wrap .cy { text-anchor: end; }
.chart-wrap .cx { text-anchor: middle; }
.chart-wrap .cp { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart-wrap .ca { opacity: .12; }
.chart-wrap .cd, .chart-wrap .hdot { stroke: var(--panel); stroke-width: 2; }
.chart-wrap .cl { fill: var(--ink); font-size: 12px; font-weight: 600; font-family: inherit; }
.chart-wrap .cross { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.chart-wrap .hit { fill: transparent; cursor: crosshair; }
.tip { position: absolute; top: 0; transform: translateX(-50%); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; font-size: .85rem; pointer-events: none; box-shadow: 0 4px 14px rgba(0, 0, 0, .12); display: grid; gap: 2px; white-space: nowrap; z-index: 2; }
.tip span { display: flex; align-items: center; gap: 6px; }
.tip i, .legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; margin: 6px 0 10px; font-size: .9rem; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.q-title { margin: 22px 0 10px; }
.qtable { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.qrow { display: grid; grid-template-columns: minmax(0, 1fr) 80px 100px 80px; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: .95rem; }
.qrow:first-child { border-top: 0; }
.qrow.head { background: var(--panel-2); font-size: .8rem; font-weight: 600; color: var(--muted); }
.qrow span:not(.qq) { text-align: right; font-variant-numeric: tabular-nums; }
.qrow.head span:first-child { text-align: left; }
.qq { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.setup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.setup-opt { border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; }
.setup-opt h3 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.steps-small { margin: 0 0 12px; padding-left: 20px; color: var(--muted); font-size: .92rem; display: grid; gap: 4px; }
.drop { display: grid; place-items: center; border: 1.5px dashed var(--line); border-radius: 14px; padding: 22px; cursor: pointer; text-align: center; color: var(--muted); font-weight: 500; }
.drop.over, .drop:hover { border-color: var(--accent); color: var(--ink); }
.file-btn { cursor: pointer; }
#gsc-state.on { color: var(--ok); font-weight: 600; }
#gsc-setup.compact .setup-opt .help { display: none; }
@media (max-width: 860px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi:nth-child(3) { border-left: 0; }
  .kpi:nth-child(n+3) { border-top: 1px solid var(--line); }
  .setup-grid { grid-template-columns: 1fr; }
  .qrow { grid-template-columns: minmax(0, 1fr) 60px 70px; }
  .qrow span:nth-child(3) { display: none; }
  .qq { white-space: normal; overflow-wrap: anywhere; }
  .periods button { padding: 7px 10px; font-size: .85rem; }
}

/* ---------- Comment la note est calculée ---------- */
.how-btn { background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .3); border-radius: 99px; padding: 6px 14px; font-size: .85rem; cursor: pointer; margin: 0 0 18px; }
.how-btn:hover { background: rgba(255, 255, 255, .2); }
.how { display: grid; gap: 14px; }
.how-row { display: flex; gap: 16px; align-items: flex-start; border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; }
.how-row.total { background: var(--accent-soft); border-color: transparent; }
.how-row p { margin: 4px 0 0; }
.how-num { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 1.4rem; font-weight: 700; border: 3px solid var(--accent); }
.modal-foot:empty { display: none; }

/* ---------- Fiche Google (données réelles) ---------- */
#view-fiche .card-block { margin-bottom: 18px; }
.stars { display: inline-block; width: max-content; font-size: .95rem; line-height: 1;
  background: linear-gradient(90deg, var(--ameliorer) var(--pct), var(--line) var(--pct)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stars::before { content: "★★★★★"; }
.gbp-table-wrap { overflow-x: auto; }
.gbp-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.gbp-table th { text-align: left; font-weight: 500; color: var(--muted); font-size: .8rem; padding: 0 10px 10px; border-bottom: 1px solid var(--line); }
.gbp-table td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.gbp-table tr:last-child td { border-bottom: 0; }
.gbp-table td:first-child, .gbp-table th:first-child { width: 36px; color: var(--muted); font-variant-numeric: tabular-nums; }
.gbp-table tr.me td { background: var(--accent-soft); font-weight: 500; }
.gbp-table tr.me td:first-child { border-radius: 12px 0 0 12px; color: var(--ink); }
.gbp-table tr.me td:last-child { border-radius: 0 12px 12px 0; }
.tag-me { display: inline-block; font-size: .75rem; font-weight: 600; background: var(--ok-ink); color: var(--on-accent); border-radius: 999px; padding: 1px 8px; margin-left: 6px; vertical-align: 1px; }
.bar-cell { display: flex; align-items: center; gap: 10px; min-width: 120px; font-variant-numeric: tabular-nums; }
.bar-cell .bar-track { flex: 0 0 100px; height: 6px; }
.bar-cell .bar { display: block; height: 6px; border-radius: 3px; background: var(--chart-1); min-width: 2px; }
.bar-cell { position: relative; }
@media (max-width: 860px) {
  .gbp-table .hide-m { display: none; }
  .bar-cell { min-width: 0; }
}
.gbp-table td:nth-child(3) { white-space: nowrap; }
.checklist input[type="checkbox"] { flex-shrink: 0; }
@media (max-width: 860px) {
  .gbp-table td, .gbp-table th { padding-left: 6px; padding-right: 6px; }
  .bar-cell .bar-track { flex-basis: 52px; }
}

/* Nom sur le rapport PDF */
.head-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.brand-input { width: 190px; border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 9px 14px; font-size: .9rem; color: var(--ink); }
.brand-input::placeholder { color: var(--muted); }
@media (max-width: 860px) { .brand-input { width: 100%; } }

/* Points gagnés en corrigeant ce point */
.gain-chip { font-size: .78rem; font-weight: 700; color: var(--ok-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- Récap à imprimer : une feuille A4, toujours claire ---------- */
.recap-wrap { overflow-x: auto; padding: 4px 0 24px; }
.recap { --rc-ink: #15181a; --rc-muted: #646a70; --rc-line: #e3e7e5; background: #fff; color: var(--rc-ink); width: 794px; max-width: 100%; min-height: 1060px; margin: 0 auto;
  padding: 44px 48px 36px; border-radius: 6px; box-shadow: 0 10px 40px rgba(0, 0, 0, .12); display: flex; flex-direction: column; gap: 22px; font-size: 14px; line-height: 1.45; }
.rc-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--rc-ink); padding-bottom: 10px; }
.rc-brand { font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.rc-date { color: var(--rc-muted); font-size: 13px; }
/* Nom du client à gauche (sur deux lignes s'il est long), progression à droite : jamais sur une ligne à part,
   pour que le récap tienne sur une page. */
.rc-who { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.rc-who > div:first-child { min-width: 0; }
.rc-who h1 { font-size: 28px; margin: 0; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.rc-who h1.long { font-size: 23px; line-height: 1.25; }
.rc-who h1.tres-long { font-size: 19px; line-height: 1.25; }
.rc-prog { flex-shrink: 0; max-width: 42%; border: 1px solid var(--rc-line); border-radius: 14px; padding: 8px 14px; text-align: right; }
.rc-prog span { display: block; font-size: 12px; color: var(--rc-muted); }
.rc-prog b { font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rc-prog em { font-style: normal; font-size: 14px; margin-left: 8px; }
.rc-who p { margin: 4px 0 0; color: var(--rc-muted); }
.rc-scores { display: grid; grid-template-columns: 1fr 1.3fr; gap: 14px; }
.rc-score { border: 1px solid var(--rc-line); border-radius: 18px; padding: 18px 12px 16px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.rc-ring-wrap { position: relative; flex: none; width: 118px; height: 118px; }
.rc-main .rc-ring-wrap { margin-bottom: 8px; }
.rc-ring-wrap svg { position: absolute; inset: 0; }
.rc-num { position: absolute; inset: 0; display: grid; place-items: center; font-size: 38px; font-weight: 700; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.rc-main .rc-num { font-size: 50px; }
.rc-main .rc-label { font-size: 17px; }
.rc-parts { display: grid; gap: 14px; }
.rc-part { border: 1px solid var(--rc-line); border-radius: 18px; padding: 14px 18px; display: flex; align-items: center; gap: 16px; }
.rc-part .rc-num { font-size: 27px; }
.rc-part-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rc-label { font-weight: 600; font-size: 15px; }
.rc-verdict { font-weight: 600; font-size: 13px; }
.rc-sub { color: var(--rc-muted); font-size: 12px; }
.rc-minis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.rc-mini { border: 1px solid var(--rc-line); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.rc-mini-v { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rc-mini-l { font-size: 12px; color: var(--rc-muted); line-height: 1.3; }
.muted-mini .rc-mini-v { color: var(--rc-muted); }
.rc-cols { display: grid; grid-template-columns: 1.25fr 1fr; gap: 26px; flex: 1; }
.rc-col h2 { font-size: 16px; margin: 0 0 10px; }
.rc-col h2:not(:first-child) { margin-top: 18px; }
.rc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rc-list li { display: flex; align-items: flex-start; gap: 10px; border-bottom: 1px solid var(--rc-line); padding-bottom: 8px; }
.rc-dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; flex: none; }
.rc-t { flex: 1; display: flex; flex-direction: column; }
.rc-t b { font-weight: 600; font-size: 13.5px; }
.rc-t small { color: var(--rc-muted); font-size: 12px; }
.rc-gain { font-weight: 700; color: #0a7552; font-size: 13px; white-space: nowrap; }
.rc-more, .rc-okcount, .rc-ai { margin: 8px 0 0; color: var(--rc-muted); font-size: 13px; }
.rc-okcount b, .rc-ai b { color: var(--rc-ink); }
.rc-oklist { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; font-size: 13px; color: #0a7552; }
.rc-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; border-top: 1px solid var(--rc-line); padding-top: 10px; color: var(--rc-muted); font-size: 12px; }
.rc-foot > span:last-child { flex-shrink: 0; font-weight: 600; color: var(--rc-ink); }
@media screen and (max-width: 860px) {
  .recap { padding: 24px 18px; min-height: 0; gap: 16px; }
  .rc-who { flex-wrap: wrap; }
  .rc-prog { max-width: none; text-align: left; }
  .rc-scores { grid-template-columns: 1fr; }
  .rc-part { padding: 12px 14px; }
  .rc-minis { grid-template-columns: repeat(2, 1fr); }
  .rc-cols { grid-template-columns: 1fr; }
}
@media print {
  @page { size: A4; margin: 10mm; }
  .print-area .recap { box-shadow: none; border-radius: 0; width: auto; min-height: 0; padding: 0; gap: 16px; }
  .print-area .rc-scores, .print-area .rc-minis, .print-area .rc-cols { break-inside: avoid; }
}

/* ---------- Résoudre avec un agent IA ---------- */
.agent-fab { position: fixed; left: calc(50% + 140px); transform: translateX(-50%); bottom: 22px; z-index: 15; display: inline-flex; align-items: center; gap: 10px;
  background: #121515; color: #fff; border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px; padding: 13px 16px 13px 22px; font-weight: 600; font-size: .98rem; cursor: pointer;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .28), 0 0 0 6px color-mix(in srgb, var(--bg) 70%, transparent); animation: fab-in .5s cubic-bezier(.2, .8, .2, 1) both; }
.agent-fab:hover { background: #000; }
.agent-fab .spark { color: var(--accent); font-size: 1.05rem; }
.agent-count { min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px; background: rgba(255, 255, 255, .14); display: inline-grid; place-items: center; font-size: .85rem; }
@keyframes fab-in { from { opacity: 0; transform: translate(-50%, 20px); } to { opacity: 1; transform: translate(-50%, 0); } }

.agent-modal { position: fixed; inset: 0; z-index: 30; background: rgba(10, 12, 12, .5); display: grid; place-items: center; padding: 20px; animation: fade-in .2s ease both; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.agent-sheet { --s-ink: #15181a; --s-muted: #6b7178; --s-line: #e6e9e7; width: min(520px, 100%); max-height: calc(100vh - 40px); background: #fff; color: var(--s-ink); border-radius: 30px; overflow: hidden;
  display: flex; flex-direction: column; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); animation: sheet-in .35s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
.agent-scroll { overflow: auto; flex: 1; }
.agent-top { background: radial-gradient(120% 90% at 50% 0%, #1a2321 0%, #0b0d0d 70%); padding: 18px 22px 0; }
.agent-bar { display: flex; align-items: center; gap: 10px; }
.agent-bar .dots { display: inline-flex; gap: 6px; }
.agent-bar .dots i { width: 8px; height: 8px; border-radius: 50%; background: #3a403e; }
.agent-url { flex: 1; background: #1c2120; color: #c9cfcd; border-radius: 999px; padding: 6px 14px; font-size: .85rem; }
.agent-cms { color: #c9cfcd; font-size: .78rem; font-weight: 600; }
.agent-chart { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; height: 168px; padding: 18px 4px 0; align-items: end; }
.ag-col { display: grid; grid-template-rows: auto 1fr auto; height: 100%; background: none; border: 0; padding: 0; cursor: pointer; color: #e8ecea; text-align: center; gap: 6px; }
.ag-val { font-weight: 700; font-size: 1.05rem; font-variant-numeric: tabular-nums; opacity: 0; transition: opacity .3s ease var(--d); }
.ag-track { position: relative; display: block; border-bottom: 1px solid #2c3230; }
.ag-fill { position: absolute; left: 0; right: 0; bottom: 0; height: 0; border-radius: 10px 10px 0 0; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 92%, #fff), color-mix(in srgb, var(--c) 70%, #000));
  transition: height .9s cubic-bezier(.2, .8, .2, 1) var(--d); box-shadow: 0 0 24px color-mix(in srgb, var(--c) 40%, transparent); }
.ag-fill.vide { background: repeating-linear-gradient(-45deg, #2a302e 0 6px, #1f2423 6px 12px); box-shadow: none; border: 1px dashed #3d4442; border-bottom: 0; }
.agent-chart.go .ag-fill { height: var(--h); }
.agent-chart.go .ag-val { opacity: 1; }
.ag-lab { font-size: .76rem; color: #9aa3a0; padding: 8px 0 12px; }
.ag-col:hover .ag-lab { color: #fff; }
.agent-body { padding: 24px 28px 18px; }
.agent-body h2 { font-size: 1.5rem; letter-spacing: -0.02em; }
.agent-body > .muted { color: var(--s-muted); margin: 6px 0 16px; }
.agent-body h3 { font-size: 1.12rem; margin: 0; }
.agent-list { border: 1px solid var(--s-line); border-radius: 20px; overflow: hidden; }
.ag-row { display: flex; align-items: center; gap: 14px; width: 100%; background: #fff; border: 0; border-top: 1px solid var(--s-line); padding: 14px 16px; cursor: pointer; text-align: left; color: var(--s-ink); }
.ag-row:first-child { border-top: 0; }
.ag-row:hover { background: #f6f8f7; }
.ag-row-ico { width: 38px; height: 38px; border-radius: 12px; background: #f1f4f2; display: grid; place-items: center; flex: none; }
.ag-row-ico svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ag-row-t { flex: 1; display: flex; flex-direction: column; }
.ag-row-t b { font-weight: 600; }
.ag-row-t small { color: var(--s-muted); font-size: .85rem; }
.ag-arrow { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--s-line); display: grid; place-items: center; color: var(--s-muted); }
.agent-sep { border: 0; border-top: 1px solid var(--s-line); margin: 22px 0 18px; }
.agent-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.agent-tabs button { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--s-line); background: #fff; color: var(--s-ink); border-radius: 999px; padding: 7px 13px; font-size: .86rem; font-weight: 500; cursor: pointer; }
.agent-tabs button.on { background: #121515; color: #fff; border-color: #121515; }
.ag-ico { font-size: .9rem; }
.ag-ico.cla { color: #d97757; } .ag-ico.gpt { color: #10a37f; } .ag-ico.cur { color: #7a7f84; }
.agent-step-title { margin: 16px 0 8px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--s-muted); }
.agent-box { background: #f4f6f5; border-radius: 18px; padding: 14px 16px; }
.agent-box p { margin: 0; font-size: .92rem; line-height: 1.5; }
.agent-box .muted { color: var(--s-muted); margin: 10px 0; }
.agent-big { width: 100%; justify-content: center; padding: 14px 18px; font-size: 1rem; background: #121515 !important; color: #fff !important; }
.agent-box .btn.small { background: #fff; color: var(--s-ink); border-color: var(--s-line); }
.agent-steps { display: flex; align-items: center; gap: 8px; margin: 18px 0 4px; }
.agent-steps span { font-size: .82rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: #f1f4f2; color: var(--s-muted); white-space: nowrap; }
.agent-steps span.on { background: #e3f7f0; color: #0a7552; }
.agent-steps span.done { background: #0a7552; color: #fff; }
.agent-steps i { flex: 1; height: 1px; background: var(--s-line); }
.agent-later { border: 0; border-top: 1px solid var(--s-line); background: #fff; color: var(--s-ink); padding: 18px; font-size: 1rem; cursor: pointer; }
.agent-later:hover { background: #f6f8f7; }
@media (max-width: 860px) {
  .agent-fab { left: 50%; bottom: 14px; font-size: .88rem; padding: 10px 10px 10px 16px; white-space: nowrap; gap: 8px; }
  .agent-modal { padding: 0; align-items: end; }
  .agent-sheet { width: 100%; max-height: 92vh; border-radius: 26px 26px 0 0; }
  .agent-body { padding: 20px 18px 14px; }
  .agent-chart { gap: 8px; }
}
@media print { .agent-fab, .agent-modal { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .ag-fill, .ag-val, .agent-sheet, .agent-fab { transition: none !important; animation: none !important; } }
.view { padding-bottom: 72px; }

/* ---------- Connexion du site (WordPress) ---------- */
.wp-dot { width: 8px; height: 8px; min-width: 0; padding: 0; border-radius: 50%; background: var(--ok); margin-left: auto; }
.wp-row { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 12px 10px 16px; border: 1px dashed var(--line); border-radius: 16px; }
.wp-row.done { border-style: solid; background: var(--accent-soft); border-color: transparent; }
.wp-row .btn svg, .wp-list .btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wp-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.wp-ok { display: inline-flex; align-items: center; gap: 6px; color: var(--ok-ink); font-weight: 600; font-size: .9rem; }
.wp-ok svg, .wp-warn svg, .wp-note svg, .wp-verif svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.wp-verif { display: flex; gap: 8px; align-items: flex-start; color: var(--ok-ink); font-weight: 500; margin: 10px 0 0; text-align: left; }
.wp-warn { display: flex; gap: 8px; align-items: flex-start; color: var(--ameliorer-ink); font-weight: 500; margin: 10px 0 0; }
#view-connexion .card-block { margin-bottom: 16px; }
.wp-pitch { background: var(--accent-soft); border-color: transparent; }
.wp-steps { list-style: none; counter-reset: wp; margin: 0; padding: 0; display: grid; gap: 4px; }
.wp-steps > li { counter-increment: wp; display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--line); }
.wp-steps > li:first-child { border-top: 0; }
.wp-steps > li > div { flex: 1; min-width: 240px; display: flex; flex-direction: column; }
.wp-steps > li > div::before { content: counter(wp); width: 28px; height: 28px; border-radius: 50%; background: var(--btn); color: var(--btn-ink); display: grid; place-items: center; font-weight: 700; font-size: .85rem; margin-bottom: 8px; }
.wp-steps p { margin: 2px 0 0; }
.wp-form { display: grid; gap: 10px; margin-top: 12px; max-width: 560px; }
.wp-form label { display: grid; gap: 4px; font-size: .88rem; font-weight: 600; }
.wp-form input { width: 100%; color: var(--ink); }
.wp-status.bad { border-color: var(--urgent); }
.wp-status .block-head { margin-bottom: 0; }
.wp-list, .wp-hist { list-style: none; margin: 0; padding: 0; }
.wp-list li, .wp-hist li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.wp-list li:first-child, .wp-hist li:first-child { border-top: 0; }
.wp-list-t { flex: 1; min-width: 180px; }
.wp-hist li.undone .wp-list-t { color: var(--muted); text-decoration: line-through; }
.wp-hist li > .muted:first-child { min-width: 110px; }
.wp-apply .wp-intro { margin: 0 0 16px; }
.wp-fields { display: grid; gap: 16px; }
.wp-field { display: grid; gap: 6px; }
.wp-label { font-weight: 600; }
.wp-field input { width: 100%; color: var(--ink); font-size: 1rem; }
.wp-apply textarea.code { font-family: ui-monospace, Consolas, monospace; font-size: .82rem; line-height: 1.55; }
.wp-count { font-size: .78rem; color: var(--muted); justify-self: end; font-variant-numeric: tabular-nums; }
.wp-count.over { color: var(--urgent-ink); font-weight: 600; }
.wp-imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.wp-img { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 16px; padding: 10px; }
.wp-img img { width: 96px; height: 72px; object-fit: cover; border-radius: 10px; background: var(--panel-2); flex: none; }
.wp-img > div { flex: 1; min-width: 0; display: grid; gap: 4px; }
.wp-img textarea { padding: 8px 10px; line-height: 1.4; }
.wp-note { display: flex; gap: 8px; align-items: center; margin: 18px 0 0; }
.wp-success { text-align: center; padding: 26px 10px; max-width: 560px; margin: 0 auto; }
.wp-success h3 { font-size: 1.3rem; margin: 14px 0 6px; }
.wp-success .wp-warn { text-align: left; }
.wp-big-ok { width: 60px; height: 60px; border-radius: 50%; background: var(--accent-soft); color: var(--ok-ink); display: inline-grid; place-items: center; animation: wpPop .45s cubic-bezier(.2, 1.4, .4, 1); }
.wp-big-ok svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
@keyframes wpPop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.spinner.inline { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; margin-right: 6px; }
@media (prefers-reduced-motion: reduce) { .wp-big-ok { animation: none; } }
@media print { .wp-row { display: none; } }
.wp-img img.broken { visibility: hidden; }
@media (max-width: 640px) {
  .wp-hist li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; }
  .wp-hist li > .muted:first-child { grid-column: 1 / -1; min-width: 0; }
  .wp-list li { display: grid; grid-template-columns: auto 1fr; }
  .wp-list li > .btn, .wp-list li > .wp-ok { grid-column: 2; justify-self: start; }
  .wp-steps > li > div { min-width: 0; flex-basis: 100%; }
}
.wp-tabs { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 99px; background: var(--panel-2); }
.wp-tabs button { border: 0; background: none; padding: 7px 16px; border-radius: 99px; font: inherit; font-size: .9rem; font-weight: 500; color: var(--muted); cursor: pointer; }
.wp-tabs button.active { background: var(--btn); color: var(--btn-ink); }
@media (max-width: 640px) {
  .wp-tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-radius: 18px; }
  .wp-tabs button { border-radius: 14px; }
  .wp-tabs button:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.wp-choice { display: grid; gap: 8px; margin-top: 10px; max-width: 640px; }
.wp-choice label { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; cursor: pointer; }
.wp-choice label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.wp-choice label { flex-direction: row !important; color: var(--ink); font-size: .95rem; font-weight: 400; }
.wp-choice input { margin-top: 4px; padding: 0; width: auto; flex: none; accent-color: var(--accent-strong); }
.wp-choice label > span { display: grid; gap: 2px; }
.wp-form details input { width: 100%; margin-top: 6px; color: var(--ink); }

/* ---------- Écran « Analyser un site » : animation Signal ----------
   Seuls transform et opacity bougent (aucun redessin de la page). Tourne seulement sur cet écran. */
:root { --wave-o: .32; }
[data-mode="dark"] { --wave-o: .22; }
#view-nouvelle { position: relative; overflow: hidden; min-height: calc(100vh - 104px); }
.start { position: relative; z-index: 1; }
.start-fx { position: absolute; left: 50%; top: calc(6vh + 250px); width: 0; height: 0; pointer-events: none; z-index: 0; }
.start-fx span { position: absolute; left: -260px; top: -260px; width: 520px; height: 520px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--accent) 70%, transparent); background: radial-gradient(circle, transparent 62%, color-mix(in srgb, var(--accent) 7%, transparent) 100%); box-shadow: 0 0 24px color-mix(in srgb, var(--accent) 10%, transparent); opacity: 0; transform: scale(.15); will-change: transform, opacity; animation: wave 8s cubic-bezier(.25, .1, .25, 1) infinite; }
.start-fx span:nth-child(2) { animation-delay: 2.66s; }
.start-fx span:nth-child(3) { animation-delay: 5.33s; }
/* Pendant l'analyse, la balise émet plus vite. */
#view-nouvelle.busy .start-fx span { animation-duration: 4.5s; }
#view-nouvelle.busy .start-fx span:nth-child(2) { animation-delay: 1.5s; }
#view-nouvelle.busy .start-fx span:nth-child(3) { animation-delay: 3s; }
body[data-view="nouvelle"] .mark::after { animation: beat 2s ease-in-out infinite; }
.start > h1, .start > .lead, .start > .start-form { animation: rise .7s cubic-bezier(.2, .8, .2, 1) both; }
.start > .lead { animation-delay: .08s; }
.start > .start-form { animation-delay: .16s; }
@keyframes wave { 0% { opacity: 0; transform: scale(.2); } 25% { opacity: var(--wave-o); } 70% { opacity: calc(var(--wave-o) * .45); } 100% { opacity: 0; transform: scale(1.3); } }
@keyframes beat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.35); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) {
  #view-nouvelle { min-height: calc(100vh - 170px); }
  .start-fx { top: 260px; }
  .start-fx span { left: -180px; top: -180px; width: 360px; height: 360px; }
}
@media (prefers-reduced-motion: reduce) {
  .start-fx { display: none; }
  body[data-view="nouvelle"] .mark::after, .start > h1, .start > .lead, .start > .start-form { animation: none; }
}
@media print { .start-fx { display: none; } }

/* ---------- Analyse en cours : la balise se remplit ----------
   Le formulaire laisse la place à un anneau qui suit les vraies étapes (lues toutes les 0,5 s), les ondes de la
   balise partent de l'anneau. Seuls --v (anneau), transform et opacity bougent. */
.an-centre { display: grid; justify-items: center; text-align: center; gap: 14px; padding: 30px 20px 26px; background: color-mix(in srgb, var(--panel) 84%, transparent); border: 1px solid var(--line); border-radius: 26px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: rise .5s cubic-bezier(.2, .8, .2, 1) both; }
.an-ring { width: 168px; height: 168px; transition: --v .5s linear; box-shadow: 0 0 44px color-mix(in srgb, var(--accent) 22%, transparent); }
[data-mode="light"] .an-ring { box-shadow: 0 10px 40px color-mix(in srgb, var(--accent) 20%, transparent), 0 0 0 6px color-mix(in srgb, var(--accent) 6%, transparent); }
.an-ring::before { inset: 12px; }
.an-ring > span { font-size: 3rem; font-weight: 650; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.an-ring b { font-weight: inherit; }
.an-ring small { font-size: 1rem; color: var(--muted); margin-left: 2px; font-weight: 600; letter-spacing: 0; }
.an-centre h2 { margin: 6px 0 0; font-size: 1.25rem; overflow-wrap: anywhere; }
.an-etape { color: var(--muted); margin: 0; min-height: 1.5em; }
.an-temps { font-variant-numeric: tabular-nums; }
.an-puces { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 4px; }
.an-puces > span { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 8px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel-2); font-size: .88rem; color: var(--muted); transition: color .3s, border-color .3s; }
.an-puces > span.fait, .an-puces > span.encours { color: var(--ink); }
.an-puces > span.encours { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.an-pt { width: 16px; height: 16px; border-radius: 50%; flex: none; display: grid; place-items: center; border: 1.5px solid color-mix(in srgb, var(--muted) 45%, transparent); }
.fait > .an-pt { background: var(--accent); border-color: var(--accent); animation: an-coche .35s cubic-bezier(.2, .9, .3, 1.4) both; }
.fait > .an-pt svg { width: 10px; height: 10px; stroke: var(--on-accent); fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.encours > .an-pt { border-color: var(--accent); }
.encours > .an-pt::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: an-pouls 1.4s ease-in-out infinite; }
@keyframes an-pouls { 50% { transform: scale(.55); opacity: .55; } }
@keyframes an-coche { from { transform: scale(.4); } to { transform: none; } }
@media (max-width: 860px) {
  .an-ring { width: 140px; height: 140px; }
  .an-ring::before { inset: 10px; }
  .an-ring > span { font-size: 2.5rem; }
}

/* ---------- Annuaires & liens ---------- */
#view-annuaires .card-block { margin-bottom: 16px; }
.ann-progress { display: flex; align-items: center; }
.ann-fields { display: grid; gap: 2px; }
.ann-field { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.ann-field:first-child { border-top: 0; }
.ann-label { font-size: .85rem; color: var(--muted); font-weight: 500; }
.ann-val { min-width: 0; overflow-wrap: anywhere; }
.ann-val.todo { color: var(--ameliorer-ink); font-size: .9rem; }
.ann-list { list-style: none; margin: 0; padding: 0; }
.ann-item { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--line); }
.ann-item:first-child { border-top: 0; }
.ann-t { display: grid; gap: 2px; flex: 1; min-width: 220px; }
.ann-item.present .ann-t b::after { content: " ✓"; color: var(--ok-ink); }
.ann-item.na { opacity: .55; }
.ann-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ann-state { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 99px; background: var(--panel-2); }
.ann-state button { border: 0; background: none; font: inherit; font-size: .8rem; color: var(--muted); padding: 5px 10px; border-radius: 99px; cursor: pointer; }
.ann-state button[aria-pressed="true"] { background: var(--panel); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.ann-state button[data-v="present"][aria-pressed="true"] { background: var(--accent-soft); color: var(--ok-ink); }
.ann-msgs { display: grid; gap: 8px; }
.ann-msg { border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; }
.ann-msg summary { cursor: pointer; font-weight: 600; }
.ann-msg pre { white-space: pre-wrap; font-family: inherit; font-size: .92rem; background: var(--panel-2); border-radius: 12px; padding: 12px 14px; margin: 12px 0; }
@media (max-width: 640px) {
  .ann-field { grid-template-columns: 1fr auto; }
  .ann-label { grid-column: 1 / -1; }
  .ann-t { min-width: 0; flex-basis: 100%; }
}
@media print { #view-annuaires .ann-actions { display: none; } }

/* Aperçu figé dans les cartes : un calque transparent empêche de faire défiler le site et ouvre la vue agrandie. */
.frame-shield { position: absolute; left: 8px; right: 8px; bottom: 8px; top: 46px; border: 0; background: transparent; cursor: zoom-in; border-radius: 14px; z-index: 2; }
.frame-shield:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.inline-preview .expand { z-index: 3; }
.browser.framed.inline .frame-wrap { height: 300px; }

/* ---------- Réglages ---------- */
.settings { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.settings-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 8px; }
.settings-nav button { border: 0; background: transparent; text-align: left; padding: 10px 14px; border-radius: 14px; cursor: pointer; color: var(--muted); font-weight: 500; }
.settings-nav button:hover { background: var(--panel-2); color: var(--ink); }
.settings-nav button.active { background: var(--accent-soft); color: var(--ok-ink); font-weight: 600; }
.settings-panels { min-width: 0; }
.settings-panel { display: flex; flex-direction: column; gap: 18px; }
.settings-panel .ai-setup { margin-bottom: 0; }
.set-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.set-grid label { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.set-grid input, .set-row select { border: 1px solid var(--line); background: var(--panel-2); border-radius: 12px; padding: 10px 12px; font-weight: 400; color: var(--ink); width: 100%; min-width: 0; }
.set-row select { width: auto; min-width: 160px; }
.set-grid input:focus, .set-row select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.set-rows { display: flex; flex-direction: column; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0; border-top: 1px solid var(--line); cursor: default; }
.set-row:first-child { border-top: 0; padding-top: 0; }
label.set-row { cursor: pointer; flex-direction: row; align-items: center; gap: 18px; font-size: 1rem; font-weight: 400; color: var(--ink); }
.set-row .muted.small { font-weight: 400; }
.set-row > div:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.set-row b { font-weight: 600; }
.switch { appearance: none; -webkit-appearance: none; width: 44px; height: 26px; border-radius: 99px; background: var(--ring-track); border: 1px solid var(--line); position: relative; cursor: pointer; flex: none; margin: 0; transition: background .2s ease; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s ease; }
.switch:checked { background: var(--accent); border-color: var(--accent); }
.switch:checked::after { transform: translateX(18px); }
.seg { display: inline-flex; background: var(--panel-2); border: 1px solid var(--line); border-radius: 99px; padding: 3px; flex: none; }
.seg button { border: 0; background: transparent; border-radius: 99px; padding: 6px 14px; cursor: pointer; color: var(--muted); font-size: .88rem; font-weight: 500; }
.seg button[aria-pressed="true"] { background: var(--panel); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); font-weight: 600; }
.set-badge { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: var(--panel-2); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.set-badge.on { background: var(--accent-soft); border-color: transparent; color: var(--ok-ink); }
.set-saved { min-height: 1.2em; margin: 10px 0 0; color: var(--ok-ink); }
.setup-actions.wrap { flex-wrap: wrap; }
.set-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; }
.danger-zone { border-color: color-mix(in srgb, var(--urgent) 30%, var(--line)); }
.btn.danger { color: var(--urgent-ink); border-color: color-mix(in srgb, var(--urgent) 40%, var(--line)); }
.btn.danger:hover { background: color-mix(in srgb, var(--urgent) 10%, var(--panel)); border-color: var(--urgent); }
.settings-link { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; padding: 18px 22px; }
.settings-link p { margin: 4px 0 0; }
.plan-contact { margin-top: 10px; font-size: .85rem; color: var(--muted); text-align: center; }
.no-anim .start-fx { display: none; }
.no-anim .mark::after { animation: none; }
@media (max-width: 860px) {
  .settings { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .settings-nav { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; border-radius: 18px; }
  .settings-nav button { white-space: nowrap; flex: none; }
  .set-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  label.set-row { flex-direction: row; align-items: center; }
  .seg { max-width: 100%; overflow-x: auto; }
}

/* ---------- « Comment ça marche » ---------- */
.head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.page-head { margin-bottom: 22px; }
.page-head .page-title { margin-bottom: 0; }
.howto-bar { display: flex; justify-content: flex-end; margin-bottom: 14px; }
.howto-btn .ico { width: 17px; height: 17px; color: var(--accent-strong); }
.howto-modal { position: fixed; inset: 0; z-index: 40; background: rgba(10, 12, 12, .5); display: grid; place-items: center; padding: 20px; animation: fade-in .2s ease both; }
.howto-box { width: min(480px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 28px; box-shadow: 0 30px 80px rgba(0, 0, 0, .3); animation: sheet-in .35s cubic-bezier(.2, .8, .2, 1) both; }
.howto-art { position: relative; height: 190px; overflow: hidden; display: grid; place-items: center; border-bottom: 1px solid var(--line);
  background: radial-gradient(60% 80% at 50% 50%, var(--accent-soft) 0%, var(--panel-2) 100%); }
.howto-ring { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); transform: translate(-50%, -50%); }
.howto-ring.r1 { width: 110px; height: 110px; }
.howto-ring.r2 { width: 190px; height: 190px; opacity: .7; }
.howto-ring.r3 { width: 280px; height: 280px; opacity: .4; }
.howto-icon { position: relative; width: 68px; height: 68px; border-radius: 20px; background: var(--panel); display: grid; place-items: center; color: var(--accent-strong);
  box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 25%, transparent); }
.howto-icon svg { width: 32px; height: 32px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.howto-tag { position: absolute; background: var(--panel); border: 1px solid var(--line); border-radius: 99px; padding: 5px 12px; font-size: .78rem; font-weight: 600; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .08); display: inline-flex; align-items: center; gap: 6px; }
.howto-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.howto-tag.t1 { left: 9%; top: 22%; }
.howto-tag.t2 { right: 8%; top: 44%; }
.howto-tag.t3 { left: 15%; bottom: 16%; }
.howto-text { padding: 22px 26px 4px; }
.howto-eyebrow { margin: 0 0 8px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ok-ink); }
.howto-text h2 { font-size: 1.35rem; text-wrap: balance; }
.howto-text > .muted { margin: 8px 0 0; }
.howto-steps { margin: 16px 0 0; padding: 0; list-style: none; counter-reset: st; display: flex; flex-direction: column; gap: 10px; }
.howto-steps li { counter-increment: st; display: flex; gap: 12px; align-items: flex-start; font-size: .93rem; }
.howto-steps li::before { content: counter(st); flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-strong); font-weight: 700; font-size: .8rem; display: grid; place-items: center; margin-top: 1px; }
.howto-foot { display: flex; justify-content: space-between; gap: 10px; padding: 20px 26px 24px; }
.howto-foot .btn { flex: 1; justify-content: center; }
@media (max-width: 860px) {
  .howto-modal { padding: 0; align-items: end; }
  .howto-box { width: 100%; max-height: 92vh; border-radius: 26px 26px 0 0; }
  .howto-art { height: 160px; }
  .howto-tag.t1 { left: 5%; } .howto-tag.t2 { right: 4%; }
  .page-head .page-title { font-size: 1.8rem; }
}
@media print { .howto-btn, .howto-bar, .howto-modal { display: none !important; } }

/* ---------- Assistant Balise ---------- */
.chat-fab { position: fixed; right: 24px; bottom: 22px; z-index: 16; width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--btn); color: var(--btn-ink); display: grid; place-items: center; box-shadow: 0 12px 32px rgba(0, 0, 0, .25); transition: transform .2s ease; }
.chat-fab:hover { transform: translateY(-2px); }
.chat-fab .ico { width: 26px; height: 26px; }
.chat-fab::after { content: ""; position: absolute; top: 4px; right: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 2px solid var(--btn); }
.chat-fab.open::after { display: none; }
.chat-panel { position: fixed; right: 24px; bottom: 90px; z-index: 25; width: min(400px, calc(100vw - 32px)); height: min(600px, calc(100vh - 120px)); display: flex; flex-direction: column;
  background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 24px 70px rgba(0, 0, 0, .28); overflow: hidden; animation: sheet-in .3s cubic-bezier(.2, .8, .2, 1) both; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 18px; border-bottom: 1px solid var(--line); }
.chat-head-t { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.chat-head-t span { font-size: .8rem; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.chat-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.chat-dot.claude { background: var(--s-claude); } .chat-dot.chatgpt { background: var(--s-chatgpt); } .chat-dot.gemini { background: var(--s-gemini); }
.chat-icon-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); cursor: pointer; color: var(--muted); font-size: .95rem; }
.chat-icon-btn:hover { color: var(--ink); border-color: var(--ink); }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--panel-2); }
.chat-msg { max-width: 88%; padding: 10px 14px; border-radius: 18px; font-size: .93rem; line-height: 1.5; overflow-wrap: anywhere; }
.chat-msg p { margin: 0; }
.chat-msg p + p, .chat-msg ul + p, .chat-msg p + ul { margin-top: 8px; }
.chat-msg ul { margin: 4px 0 0; padding-left: 18px; }
.chat-msg .btn { margin-top: 10px; }
.chat-msg.bot { align-self: flex-start; background: var(--panel); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.chat-msg.me { align-self: flex-end; background: var(--btn); color: var(--btn-ink); border-bottom-right-radius: 6px; }
.chat-msg.err { border-color: color-mix(in srgb, var(--urgent) 40%, var(--line)); color: var(--urgent-ink); }
.chat-copy { display: block; margin-top: 6px; border: 0; background: none; padding: 0; color: var(--muted); font-size: .78rem; cursor: pointer; }
.chat-copy:hover { color: var(--ink); text-decoration: underline; }
.chat-msg.typing { display: inline-flex; gap: 5px; padding: 14px 16px; }
.chat-msg.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: chat-dot 1s infinite ease-in-out; }
.chat-msg.typing span:nth-child(2) { animation-delay: .15s; } .chat-msg.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chat-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.chat-chips { display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 14px 0; background: var(--panel); }
.chat-chips button { border: 1px solid var(--line); background: var(--panel); border-radius: 99px; padding: 6px 12px; font-size: .82rem; cursor: pointer; color: var(--ink); text-align: left; }
.chat-chips button:hover { border-color: var(--accent); background: var(--accent-soft); }
.chat-form { display: flex; align-items: flex-end; gap: 8px; padding: 12px 14px 14px; background: var(--panel); }
.chat-form textarea { flex: 1; min-width: 0; resize: none; border: 1px solid var(--line); background: var(--panel-2); color: var(--ink); border-radius: 18px; padding: 10px 14px; font: inherit; line-height: 1.4; max-height: 120px; }
.chat-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.chat-send { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--btn); color: var(--btn-ink); cursor: pointer; display: grid; place-items: center; flex: none; }
.chat-send .ico { width: 18px; height: 18px; }
@media (max-width: 860px) {
  .chat-fab { right: 14px; bottom: 14px; width: 50px; height: 50px; }
  .fab-on .chat-fab { bottom: 72px; }
  .chat-panel { right: 0; left: 0; bottom: 0; width: 100%; height: 88vh; border-radius: 24px 24px 0 0; }
}
@media print { .chat-fab, .chat-panel { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .chat-msg.typing span { animation: none; } }

/* ---------- Choisir les corrections, appliquer la sélection, tout remettre comme avant ---------- */
.skip-btn { border: 1px solid var(--line); background: var(--panel); color: var(--muted); border-radius: 99px; padding: 3px 11px; font-size: .78rem; font-weight: 500; cursor: pointer; white-space: nowrap; }
.skip-btn:hover { color: var(--ink); border-color: var(--ink); }
.skip-btn[aria-pressed="true"] { color: var(--ok-ink); border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); background: var(--accent-soft); }
.card.skipped { background: var(--panel-2); }
.card.skipped > *:not(.card-head):not(.skip-note) { opacity: .45; }
.card.skipped .card-head h3 { color: var(--muted); }
.skip-note { margin: 8px 0 0; font-size: .88rem; color: var(--muted); background: var(--panel); border: 1px dashed var(--line); border-radius: 12px; padding: 8px 12px; }
.wp-pick-help { margin: -6px 0 10px; }
.wp-pick li { gap: 12px; }
.wp-pick input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent-strong); flex: none; margin: 0; cursor: pointer; }
.wp-pick li.off .wp-list-t { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 60%, transparent); }
.wp-pick-done { width: 18px; height: 18px; color: var(--ok-ink); flex: none; display: grid; place-items: center; }
.wp-pick-done svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.4; }
.wp-todo { color: var(--ameliorer-ink); font-weight: 600; white-space: nowrap; }
.wp-batch { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.wp-batch .btn svg, .btn.danger svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wp-batch-list { margin: 0 0 14px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.wp-batch-list li { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel-2); }
.btn.danger-fill { background: var(--urgent-ink); border-color: var(--urgent-ink); color: var(--btn-ink); }
.btn.danger-fill:hover { opacity: .9; }
.agent-pick { padding: 12px 14px; }
.ag-pick-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.ag-pick-head span { display: inline-flex; gap: 6px; }
.agent-pick > .muted.small { margin: 6px 0 8px; }
.ag-pick-list { list-style: none; margin: 0; padding: 0; max-height: 220px; overflow-y: auto; border-top: 1px solid var(--s-line); }
.ag-pick-list li { border-bottom: 1px solid var(--s-line); }
.ag-pick-list label { display: flex; flex-direction: row; align-items: center; gap: 10px; padding: 9px 2px; cursor: pointer; color: var(--s-ink); font-size: .92rem; font-weight: 400; }
.ag-pick-list label span { flex: 1; min-width: 0; }
.ag-pick-list small { color: var(--s-muted); font-size: .8rem; white-space: nowrap; }
.ag-pick-list input { width: 17px; height: 17px; accent-color: #0a7552; margin: 0; flex: none; }
.agent-big:disabled { opacity: .45; cursor: default; }
@media (max-width: 640px) { .wp-pick li { flex-wrap: wrap; } }
@media print { .skip-btn, .skip-note { display: none !important; } }

/* ---------- Accueil : progression mois par mois ---------- */
#home-progress:empty { display: none; }
#home-progress { margin: 22px 0 6px; }
.home-prog .block-head { margin-bottom: 4px; }
.home-prog .block-head p b { color: var(--ink); }
.home-prog .block-head p b.ok-ink { color: var(--ok-ink); }
.home-prog .block-head p b.urgent-ink { color: var(--urgent-ink); }
.urgent-ink { color: var(--urgent-ink); font-weight: 600; }
.prog-wrap { overflow-x: auto; margin-top: 10px; }
.prog-table { width: 100%; border-collapse: collapse; font-size: .92rem; font-variant-numeric: tabular-nums; }
.prog-table thead th { text-align: left; font-weight: 500; color: var(--muted); font-size: .8rem; padding: 0 10px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.prog-table td, .prog-table tbody th { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.prog-table tbody th { font-weight: 600; }
.prog-table tbody th small { display: block; font-weight: 400; color: var(--muted); font-size: .78rem; }
.prog-table tbody tr:last-child td, .prog-table tbody tr:last-child th { border-bottom: 0; }
.prog-d { font-size: .8rem; margin-left: 6px; }
.home-prog > .muted.small { margin: 10px 0 0; }
@media (max-width: 860px) {
  .prog-table .hide-m { display: none; }
  .prog-table td, .prog-table th { padding-left: 6px; padding-right: 6px; }
}

/* ---------- Accueil : classement dans les IA ---------- */
#home-ranking { margin: 22px 0 6px; }
.home-rank .block-head { margin-bottom: 4px; }
.home-rank .block-head p b { color: var(--ink); }
.eng-card.ghost .eng-list { opacity: .7; }
.ghost-bar { height: 10px; border-radius: 99px; background: linear-gradient(90deg, var(--line), transparent); max-width: 70%; }
.home-rank.is-empty .eng-card.ghost:nth-child(2) .ghost-bar { max-width: 55%; }
.home-rank.is-empty .eng-card.ghost:nth-child(3) .ghost-bar { max-width: 62%; }
@media print { #home-ranking { display: none; } }
.kp-miss { margin: 10px 0 0; font-size: .85rem; color: var(--ameliorer-ink); font-weight: 600; }
.home-rank .eng-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.home-rank.is-empty { border-style: dashed; }
.home-rank .eng-head .eng-pill.measured { display: none; }

/* Logo cliquable : retour à l'écran « Analyser un site » */
button.wordmark { border: 0; background: transparent; color: inherit; font: inherit; font-weight: 700; font-size: 1.3rem; letter-spacing: -0.02em; cursor: pointer; text-align: left; border-radius: 12px; width: fit-content; }
button.wordmark:hover .mark::after { box-shadow: 0 0 16px var(--accent), 0 0 4px var(--accent); }
button.wordmark:hover { color: var(--ink); }
@media (max-width: 860px) { button.wordmark { font-size: 1.15rem; } }

/* Visites à gagner */
.channel-cards { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.engine-logo.ppx { background: #1f3b3d; color: #e6f4f1; border-color: #1f3b3d; }
.gain-side { display: flex; flex-direction: column; gap: 6px; }
.gain-side p { margin: 0; }
.link-btn { border: 0; background: none; padding: 0; color: var(--ok-ink); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.volume-input { width: 90px; border: 1px solid var(--line); background: var(--panel-2); color: var(--ink); border-radius: 10px; padding: 5px 8px; font: inherit; }
.how p { margin: 0 0 12px; line-height: 1.55; }
@media (max-width: 1100px) { .channel-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .channel-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.home-rank.running .ghost-bar { background: linear-gradient(90deg, var(--line) 0%, var(--accent-soft) 50%, var(--line) 100%); background-size: 200% 100%; animation: ghost-shine 1.4s ease-in-out infinite; }
@keyframes ghost-shine { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .home-rank.running .ghost-bar { animation: none; } }

/* ========== Animations ludiques communes ========== */
@property --v { syntax: '<number>'; inherits: true; initial-value: 0; }
.confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 90; }
@keyframes pop-in { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.18); opacity: 1; } 100% { transform: scale(1); } }
@keyframes rise-in { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(16deg); } 30% { transform: rotate(-14deg); } 45% { transform: rotate(10deg); } 60% { transform: rotate(-6deg); } 75% { transform: rotate(3deg); } }
@keyframes nudge { 0%, 100% { transform: none; box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 0%, transparent); } 30% { transform: scale(1.06); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 30%, transparent); } 60% { transform: scale(.98); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes wave-sm { from { transform: scale(.6); opacity: .7; } to { transform: scale(1.9); opacity: 0; } }
.pulse-once { animation: nudge .6s ease; }
.small-spin { width: 14px; height: 14px; display: inline-block; vertical-align: -2px; }

/* ========== Cloche « À faire » ========== */
.brand-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 2px 18px 0; }
.brand-row .wordmark { padding-bottom: 0; }
.bell { position: relative; width: 40px; height: 40px; border-radius: 13px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); display: grid; place-items: center; cursor: pointer; flex: none; transition: color .15s, border-color .15s, background .15s; }
.bell svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transform-origin: 50% 15%; }
.bell:hover { color: var(--ink); border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.bell.has { color: var(--ink); background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.bell.ringing svg { animation: wiggle .9s ease; }
.bell-n { position: absolute; top: -7px; right: -7px; box-sizing: border-box; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--urgent); color: #fff; font-size: .74rem; font-weight: 700; line-height: 1; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--panel); animation: pop-in .4s ease; font-variant-numeric: tabular-nums; }
.bell-n[hidden] { display: none; }

.todo-veil { position: fixed; inset: 0; background: rgba(10, 14, 13, .28); z-index: 60; opacity: 0; transition: opacity .25s ease; }
.todo-veil.in { opacity: 1; }
.todo { position: fixed; top: 0; right: 0; bottom: 0; width: min(480px, 100vw); z-index: 61; background: var(--bg); border-left: 1px solid var(--line); box-shadow: -20px 0 50px rgba(0, 0, 0, .12);
  display: flex; flex-direction: column; transform: translateX(104%); transition: transform .32s cubic-bezier(.2, .9, .25, 1); }
.todo.in { transform: none; }
.todo-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 22px 22px 14px; padding-top: max(22px, env(safe-area-inset-top, 0px)); border-bottom: 1px solid var(--line); background: var(--panel); }
.todo-head h2 { margin: 0 0 2px; font-size: 1.35rem; letter-spacing: -.01em; }
.todo-body { overflow-y: auto; padding: 16px 18px 28px; display: grid; gap: 14px; align-content: start; }
.tcards { display: grid; gap: 12px; }
.tcard { --t: var(--accent); background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--t); border-radius: 20px; padding: 16px 16px 14px; display: grid; gap: 10px;
  animation: rise-in .45s cubic-bezier(.2, .9, .25, 1) both; animation-delay: calc(var(--i, 0) * 70ms); transition: transform .35s ease, opacity .35s ease, max-height .3s ease, padding .3s ease, margin .3s ease; max-height: 900px; overflow: hidden; }
.tcard.t-good { --t: var(--ok); }
.tcard.t-todo { --t: var(--ameliorer); }
.tcard.t-bad { --t: var(--urgent); }
.tcard-top { display: flex; gap: 12px; align-items: center; }
.tcard-ico { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; font-size: 1.1rem; font-weight: 700; flex: none; background: color-mix(in srgb, var(--t) 16%, var(--panel)); color: var(--t); animation: pop-in .5s ease both; animation-delay: calc(var(--i, 0) * 70ms + 150ms); }
.tcard.t-bad .tcard-ico { animation: pop-in .5s ease both, wiggle 1s ease 1s; }
.tcard-t { display: grid; min-width: 0; }
.tcard-t small { color: var(--muted); font-size: .78rem; }
.tcard-t b { font-size: 1rem; }
.t-stars { color: #f2b01e; letter-spacing: 2px; font-size: 1.05rem; line-height: 1; }
.t-stars i { font-style: normal; color: var(--line); }
.tcard blockquote { margin: 0; padding: 10px 14px; border-radius: 14px; background: var(--panel-2); font-style: italic; color: var(--ink); overflow-wrap: anywhere; }
.tcard p { margin: 0; }
.tcard-draft { display: grid; gap: 6px; }
.tcard-label { display: flex; justify-content: space-between; gap: 8px; font-size: .8rem; font-weight: 600; color: var(--ok-ink); }
.tcard-label .muted { font-weight: 400; }
.tcard textarea, .src-mail textarea { width: 100%; box-sizing: border-box; resize: vertical; font: inherit; font-size: .92rem; line-height: 1.5; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel-2); color: var(--ink); }
.tcard textarea:focus, .src-mail textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea.writing { background: linear-gradient(90deg, var(--panel-2) 30%, var(--accent-soft) 50%, var(--panel-2) 70%) 0 0 / 300% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -150% 0; } }
.tcard-a { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tcard-a .btn { white-space: normal; text-align: left; }
.tcard-more { display: inline-flex; gap: 12px; margin-left: auto; }
.t-done .t-tick { width: 18px; height: 18px; border-radius: 50%; border: 1.6px solid var(--muted); display: grid; place-items: center; transition: background .2s, border-color .2s; }
.t-done .t-tick svg { width: 12px; height: 12px; fill: none; stroke: var(--on-accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.t-done:hover .t-tick { border-color: var(--accent); }
.t-done.nudge { animation: nudge .7s ease 2; border-color: var(--accent); }
.tcard.leaving .t-done .t-tick { background: var(--accent); border-color: var(--accent); animation: pop-in .35s ease; }
.tcard.leaving .t-done .t-tick svg { opacity: 1; }
.tcard.leaving { transform: translateX(12px) scale(.98); }
.tcard.gone { transform: translateX(110%) rotate(3deg); opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; margin-top: -12px; border-width: 0; }
.tcard.later { transform: translateY(8px); opacity: .3; }

.t-follow { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; background: var(--panel); border: 1.5px dashed color-mix(in srgb, var(--accent) 55%, var(--line)); border-radius: 20px; padding: 14px 16px; animation: rise-in .4s ease both; }
.t-follow > div { display: grid; gap: 2px; flex: 1; min-width: 200px; }
.t-empty { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 34px 16px 20px; }
.t-empty-art { position: relative; width: 92px; height: 92px; display: grid; place-items: center; margin-bottom: 8px; animation: float 3.2s ease-in-out infinite; }
.t-empty-art .mark { width: 44px; height: 44px; border-radius: 14px; }
.t-empty-art .mark::after { width: 14px; height: 14px; left: 15px; top: 15px; }
.t-empty-art i { position: absolute; inset: 14px; border-radius: 50%; border: 2px solid var(--accent); animation: wave-sm 2.6s ease-out infinite; }
.t-empty-art i:nth-child(3) { animation-delay: .9s; }
.t-empty-art i:nth-child(4) { animation-delay: 1.8s; }
.t-empty b { font-size: 1.05rem; }
.t-clients h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 8px 0 8px; }
.t-clients ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.t-clients li { display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; }
.t-clients li > span:not(.l-av) { display: grid; flex: 1; min-width: 0; }
.t-clients small { font-size: .78rem; }
.t-settings { justify-self: center; margin-top: 6px; }

/* Petite carte qui glisse dans le coin */
.pops { position: fixed; top: 18px; right: 18px; top: max(18px, env(safe-area-inset-top, 0px)); z-index: 70; display: grid; gap: 10px; width: min(360px, calc(100vw - 32px)); pointer-events: none; }
.pop { --t: var(--accent); pointer-events: auto; display: flex; gap: 12px; align-items: flex-start; text-align: left; border: 1px solid var(--line); border-left: 4px solid var(--t); background: var(--panel); color: var(--ink); border-radius: 18px; padding: 12px 14px; cursor: pointer;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .16); animation: pop-slide .5s cubic-bezier(.2, 1.2, .3, 1) both; font: inherit; transition: transform .35s ease, opacity .35s ease; }
.pop.t-good { --t: var(--ok); } .pop.t-todo { --t: var(--ameliorer); } .pop.t-bad { --t: var(--urgent); }
.pop.out { transform: translateX(120%); opacity: 0; }
@keyframes pop-slide { from { transform: translateX(120%) rotate(4deg); opacity: 0; } to { transform: none; opacity: 1; } }
.pop-ico { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; flex: none; font-weight: 700; background: color-mix(in srgb, var(--t) 16%, var(--panel)); color: var(--t); animation: pop-in .5s ease .25s both, wiggle .8s ease .7s; }
.pop-t { display: grid; gap: 1px; min-width: 0; flex: 1; }
.pop-t small { color: var(--muted); font-size: .76rem; }
.pop-t span { color: var(--muted); font-size: .85rem; }
.pop-x { color: var(--muted); font-size: 1.2rem; line-height: 1; padding: 0 2px; }

/* Fiche Google : carte de suivi */
.f-suivi { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; border-style: dashed; border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.f-suivi.on { border-style: solid; background: linear-gradient(120deg, var(--accent-soft), var(--panel) 60%); }
.f-suivi > div:nth-child(2) { display: grid; gap: 2px; flex: 1; min-width: 220px; }
.f-suivi-a { display: flex; gap: 10px; align-items: center; }
.f-bell { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-strong); flex: none; }
.f-bell svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transform-origin: 50% 15%; animation: wiggle 1s ease 1s; }
.f-suivi.on .f-bell svg { animation: wiggle 1s ease 1s, none; }

/* ========== Où les IA vous cherchent ========== */
.l-prog { display: flex; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 8px 16px 8px 8px; }
.l-ring { width: 64px; height: 64px; transition: --v 1s cubic-bezier(.2, .9, .25, 1); }
.l-ring::before { inset: 6px; }
.l-ring span { font-size: .85rem; color: var(--muted); }
.l-ring b { font-size: 1.25rem; color: var(--ink); }
.l-step { margin-bottom: 18px; }
.l-step-head { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 16px; }
.l-step-head > div { flex: 1; min-width: 240px; }
.l-step-head h2 { margin: 2px 0 4px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.l-step-head p { margin: 0; }
.l-n { width: 36px; height: 36px; border-radius: 12px; background: var(--ink); color: var(--panel); display: grid; place-items: center; font-weight: 700; flex: none; }
.l-n.ok { background: var(--accent); animation: pop-in .5s ease; }
.l-n svg { width: 18px; height: 18px; fill: none; stroke: var(--on-accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.l-count { font-size: .8rem; font-weight: 600; padding: 2px 10px; border-radius: 99px; background: var(--panel-2); border: 1px solid var(--line); color: var(--muted); font-variant-numeric: tabular-nums; }
.l-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 10px; }
.l-card { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: start; border: 1px solid var(--line); border-radius: 18px; padding: 14px; background: var(--panel); animation: rise-in .4s ease both; animation-delay: calc(var(--i, 0) * 60ms); transition: border-color .2s, background .2s; }
.l-card-t { display: grid; gap: 2px; }
.l-card-a { grid-column: 2; display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.l-card.done { background: color-mix(in srgb, var(--accent-soft) 60%, var(--panel)); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.l-card.done .l-card-t b { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--accent) 70%, transparent); text-decoration-thickness: 2px; }
.l-card.na { opacity: .5; }
.l-check { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line); background: var(--panel); display: grid; place-items: center; cursor: pointer; padding: 0; transition: border-color .2s, background .2s, transform .15s; }
.l-check:hover { border-color: var(--accent); transform: scale(1.08); }
.l-check svg { width: 16px; height: 16px; fill: none; stroke: var(--on-accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: scale(.4); transition: opacity .2s, transform .25s cubic-bezier(.2, 1.4, .4, 1); }
.l-check[aria-pressed="true"], .l-card.just .l-check { background: var(--accent); border-color: var(--accent); }
.l-check[aria-pressed="true"] svg, .l-card.just .l-check svg { opacity: 1; transform: none; }
.l-card.just .l-check { animation: pop-in .4s ease; }
.l-auto { font-size: .75rem; color: var(--ok-ink); font-weight: 600; }
.l-av { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; font-weight: 700; flex: none; background: hsl(var(--h, 160) 70% 93%); color: hsl(var(--h, 160) 45% 32%); }
[data-mode="dark"] .l-av { background: hsl(var(--h, 160) 30% 20%); color: hsl(var(--h, 160) 60% 78%); }
.src-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.src { border: 1px solid var(--line); border-radius: 20px; padding: 14px 16px; display: grid; gap: 12px; background: var(--panel); animation: rise-in .4s ease both; animation-delay: calc(var(--i, 0) * 60ms); transition: border-color .25s, background .25s; }
.src.s-contacte { border-color: color-mix(in srgb, var(--ameliorer) 45%, var(--line)); }
.src.s-ajoute { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); background: color-mix(in srgb, var(--accent-soft) 55%, var(--panel)); }
.src-top { display: flex; gap: 12px; align-items: flex-start; }
.src-t { display: grid; gap: 3px; min-width: 0; flex: 1; }
.src-t b { overflow-wrap: anywhere; }
.src-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 2px; }
.src-kind, .src-eng { font-size: .74rem; font-weight: 600; padding: 2px 9px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel-2); }
.src-eng.e-chatgpt { color: var(--s-chatgpt); border-color: color-mix(in srgb, var(--s-chatgpt) 35%, var(--line)); }
.src-eng.e-gemini { color: var(--s-gemini); border-color: color-mix(in srgb, var(--s-gemini) 35%, var(--line)); }
.src-eng.e-claude { color: var(--s-claude); border-color: color-mix(in srgb, var(--s-claude) 35%, var(--line)); }
.src-bottom { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.src-steps { display: inline-flex; align-items: center; gap: 0; padding: 3px; border-radius: 99px; background: var(--panel-2); border: 1px solid var(--line); }
.src-steps i { width: 10px; height: 2px; background: var(--line); }
.src-steps button { border: 0; background: none; font: inherit; font-size: .8rem; color: var(--muted); padding: 6px 12px; border-radius: 99px; cursor: pointer; transition: background .2s, color .2s; }
.src-steps button.past { color: var(--ok-ink); }
.src-steps button[aria-pressed="true"] { background: var(--panel); color: var(--ink); font-weight: 600; box-shadow: 0 1px 4px rgba(0, 0, 0, .1); }
.src-steps button[data-v="contacte"][aria-pressed="true"] { background: color-mix(in srgb, var(--ameliorer) 18%, var(--panel)); color: var(--ameliorer-ink); }
.src-steps button[data-v="ajoute"][aria-pressed="true"] { background: var(--accent); color: var(--on-accent); animation: pop-in .4s ease; }
.src-a { display: flex; gap: 6px; flex-wrap: wrap; }
.src-mail { display: grid; gap: 8px; animation: rise-in .3s ease both; }
.src-mail-a { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.l-empty { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; border: 1.5px dashed var(--line); border-radius: 20px; padding: 18px; }
.l-empty > div:nth-child(2) { flex: 1; min-width: 220px; }
.l-empty p { margin: 4px 0 0; }
.l-empty-ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-strong); animation: float 3s ease-in-out infinite; }
.l-empty-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.l-conc { margin: 12px 4px 0; }
.l-more { margin-bottom: 18px; }
.l-more summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; list-style: none; }
.l-more summary::-webkit-details-marker { display: none; }
.l-more summary svg { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; transition: transform .2s; flex: none; }
.l-more[open] summary svg { transform: rotate(180deg); }
.l-more[open] summary { margin-bottom: 16px; }
.l-more-h { margin: 22px 0 2px; font-size: 1.02rem; }

/* Limite des questions aux IA */
.ai-quota { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 14px; margin-bottom: 10px; font-size: .9rem; background: var(--panel-2); border: 1px solid var(--line); }
.ai-quota:empty { display: none; }
.q-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; box-shadow: 0 0 0 4px var(--accent-soft); }
.ai-quota.q-attente .q-dot { background: var(--ameliorer); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ameliorer) 20%, transparent); }
.ai-quota { flex-wrap: wrap; }
.q-qs { flex-basis: 100%; padding-left: 19px; color: var(--muted); font-size: .85rem; }
.q-chip { font-size: .8rem; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); background: var(--panel-2); white-space: nowrap; }

@media (max-width: 860px) {
  /* Place pour les boutons en haut à droite (retour, mode nuit, et « Mon compte » en ligne) : la cloche ne passe jamais dessous. */
  .brand-row { padding: 0; margin-right: 100px; }
  .app:has(#compte-btn:not([hidden])) .brand-row { margin-right: 148px; }
  .bell { width: 36px; height: 36px; }
  .todo { width: 100vw; border-left: 0; }
  .tcard-more { margin-left: 0; }
  .src-bottom { flex-direction: column; align-items: flex-start; }
  .src-steps { max-width: 100%; overflow-x: auto; }
  .pops { top: auto; bottom: 18px; bottom: max(18px, env(safe-area-inset-bottom, 0px)); right: 16px; }
}
@media print { .bell, .todo, .todo-veil, .pops, .confetti { display: none !important; } }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ========== Fiche Google « comme sur le téléphone » ========== */
:root, [data-mode="light"] { --map-land: #eef1ec; --map-road: #ffffff; --map-road-edge: #dfe3dc; --map-water: #b9dcf0; --map-park: #cfe9cf; --phone: #15181a; --pin: #e5484d; }
[data-mode="dark"] { --map-land: #1d2322; --map-road: #2e3634; --map-road-edge: #252c2a; --map-water: #18364a; --map-park: #1f3a2c; --phone: #050606; --pin: #ff6b6f; }
.gm-wrap { margin-bottom: 18px; overflow: hidden; }
.gm-top { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 18px; }
.gm-top h2 { margin: 0 0 4px; }
.gm-top p { margin: 0; }
.gm-actions { display: flex; gap: 8px; align-items: center; }
.gm-seg button[data-gm="apres"][aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.gm-grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 28px; align-items: start; }
.gm-phone { position: relative; width: 100%; max-width: 340px; aspect-ratio: 340 / 640; border-radius: 42px; background: var(--phone); padding: 12px; box-sizing: border-box; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .35), inset 0 0 0 2px rgba(255, 255, 255, .06); margin: 0 auto; }
.gm-notch { position: absolute; top: 18px; left: 50%; width: 92px; height: 24px; border-radius: 99px; background: var(--phone); transform: translateX(-50%); z-index: 3; }
.gm-screen { position: relative; height: 100%; border-radius: 31px; overflow: hidden; background: var(--map-land); }
.gm-search { position: absolute; top: 48px; left: 12px; right: 12px; z-index: 2; display: flex; align-items: center; gap: 10px; background: var(--panel); border-radius: 99px; padding: 10px 14px; font-size: .82rem; box-shadow: 0 4px 14px rgba(0, 0, 0, .14); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gm-search-ico { width: 13px; height: 13px; border: 2px solid var(--muted); border-radius: 50%; flex: none; position: relative; }
.gm-search-ico::after { content: ""; position: absolute; width: 6px; height: 2px; background: var(--muted); right: -6px; bottom: -3px; transform: rotate(45deg); }
.gm-map { position: absolute; inset: 0 0 auto 0; height: 52%; }
.gm-map-svg { width: 100%; height: 100%; display: block; }
.gm-land { fill: var(--map-land); }
.gm-water { fill: var(--map-water); }
.gm-park { fill: var(--map-park); }
.gm-road { fill: none; stroke: var(--map-road); stroke-width: 6; stroke-linecap: round; }
.gm-road.big { stroke-width: 11; }
.gm-pin { position: absolute; transform: translate(-50%, -100%); display: grid; justify-items: center; z-index: 1; }
.gm-pin b { width: 26px; height: 26px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--muted); display: grid; place-items: center; box-shadow: 0 3px 8px rgba(0, 0, 0, .25); }
.gm-pin b { color: #fff; font-size: .72rem; font-weight: 800; line-height: 1; }
.gm-pin b em { font-style: normal; display: block; transform: rotate(45deg); }
.gm-pin i { font-style: normal; font-size: .62rem; font-weight: 700; background: var(--panel); color: var(--ink); border-radius: 99px; padding: 1px 5px; margin-top: 2px; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }
.gm-pin.small b { width: 22px; height: 22px; background: color-mix(in srgb, var(--muted) 85%, var(--panel)); }
.gm-pin.me { z-index: 2; }
.gm-pin.me b { width: 38px; height: 38px; background: var(--pin); font-size: .95rem; box-shadow: 0 6px 16px rgba(229, 72, 77, .45); }
.gm-ripple { position: absolute; width: 60px; height: 22px; border-radius: 50%; transform: translate(-50%, -50%); border: 2px solid var(--pin); opacity: 0; pointer-events: none; }
/* chiffres droits dans l'épingle penchée */
.gm-card { position: absolute; left: 0; right: 0; bottom: 0; top: 44%; background: var(--panel); border-radius: 22px 22px 0 0; padding: 8px 14px 14px; box-shadow: 0 -8px 24px rgba(0, 0, 0, .12); display: grid; align-content: start; gap: 7px; overflow: hidden; }
.gm-grab { width: 36px; height: 4px; border-radius: 99px; background: var(--line); justify-self: center; margin-bottom: 2px; }
.gm-photos { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; height: 58px; border-radius: 12px; }
.gm-tile { border-radius: 9px; background: linear-gradient(135deg, hsl(var(--h, 150) 45% 70%), hsl(calc(var(--h, 150) + 40) 50% 55%)); }
.gm-tile.t0 { --h: 25; } .gm-tile.t1 { --h: 160; } .gm-tile.t2 { --h: 200; } .gm-tile.t3 { --h: 330; }
.gm-nophoto { grid-column: 1 / -1; display: grid; place-items: center; border: 1.5px dashed var(--urgent); border-radius: 10px; color: var(--urgent-ink); font-size: .78rem; font-weight: 600; }
.gm-more { position: absolute; right: 4px; bottom: 4px; background: rgba(0, 0, 0, .6); color: #fff; font-size: .7rem; font-weight: 700; padding: 2px 7px; border-radius: 99px; }
.gm-name { margin: 2px 0 0; font-size: 1.05rem; line-height: 1.2; }
.gm-rating { position: relative; display: flex; align-items: center; gap: 6px; font-size: .85rem; }
.gm-stars { position: relative; display: inline-block; font-size: .85rem; line-height: 1; color: var(--line); letter-spacing: 1px; }
.gm-stars::before { content: "★★★★★"; }
.gm-stars::after { content: "★★★★★"; position: absolute; left: 0; top: 0; color: #f2b01e; width: var(--fill, var(--pct)); overflow: hidden; white-space: nowrap; }
.gm-cat { font-size: .8rem; }
.gm-open { color: var(--ok-ink); font-weight: 600; }
.gm-closed { color: var(--urgent-ink); font-weight: 600; }
.gm-btns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 4px 0; }
.gm-b { position: relative; display: grid; justify-items: center; gap: 3px; font-size: .66rem; color: var(--muted); text-align: center; }
.gm-b i { font-style: normal; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: .95rem; border: 1px solid var(--line); color: var(--muted); }
.gm-b.on i { background: var(--accent-soft); border-color: transparent; color: var(--accent-strong); }
.gm-b.gm-miss i { border: 1.5px dashed var(--urgent); color: var(--urgent); background: transparent; }
.gm-b.gm-miss { color: var(--urgent-ink); }
.gm-rows { display: grid; gap: 2px; border-top: 1px solid var(--line); padding-top: 6px; }
.gm-row { position: relative; display: flex; gap: 10px; align-items: flex-start; font-size: .78rem; padding: 4px 0; }
.gm-row i { font-style: normal; color: var(--muted); width: 16px; text-align: center; flex: none; }
.gm-row.gm-miss span { color: var(--urgent-ink); font-weight: 600; }
.gm-row.gm-miss { border-radius: 8px; outline: 1.5px dashed color-mix(in srgb, var(--urgent) 70%, transparent); outline-offset: 1px; padding-left: 4px; }
.gm-filled { position: relative; }
.gm-filled span, .gm-b.gm-filled { color: var(--ok-ink); }
.gm-b.gm-filled i { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.gm-row.gm-filled { background: color-mix(in srgb, var(--accent-soft) 70%, transparent); border-radius: 8px; padding-left: 4px; }
.gm-spot { position: absolute; top: -6px; right: -4px; width: 20px; height: 20px; border-radius: 50%; background: var(--urgent); color: #fff; font-size: .7rem; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 3px color-mix(in srgb, var(--urgent) 25%, transparent); z-index: 2; transition: transform .2s; }
.gm-spot.done { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.gm-row .gm-spot { top: 2px; right: 0; }
.gm-spot.hl, [data-spot-li].hl { transform: scale(1.25); }
.gm-side { display: grid; gap: 14px; align-content: start; min-width: 0; }
.gm-score { display: flex; gap: 14px; align-items: center; }
.gm-score > div { display: grid; gap: 2px; }
.gm-ring { width: 70px; height: 70px; transition: --v 1.1s cubic-bezier(.2, .9, .25, 1); }
.gm-ring::before { inset: 6px; }
.gm-ring span { font-size: .85rem; color: var(--muted); letter-spacing: 0; }
.gm-ring b { font-size: 1.35rem; color: var(--ink); }
.gm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.gm-list li { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 16px; padding: 11px 14px; background: var(--panel); transition: transform .2s, border-color .2s, box-shadow .2s; }
.gm-list li > div { display: grid; gap: 2px; min-width: 0; }
.gm-list li.hl { transform: translateX(4px); border-color: var(--urgent); box-shadow: 0 6px 18px rgba(0, 0, 0, .08); }
.gm-li-ico { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: .78rem; font-weight: 800; background: var(--urgent); color: #fff; }
.gm-li-ico svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.gm-list li.ok .gm-li-ico { background: var(--accent-soft); color: var(--accent-strong); }
.gm-list li.fait .gm-li-ico { background: var(--accent); color: var(--on-accent); }
.gm-list li.fait { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: color-mix(in srgb, var(--accent-soft) 45%, var(--panel)); }
.gm-list li.ghost .gm-li-ico { background: var(--panel-2); color: var(--muted); border: 1px dashed var(--line); }
.sk, .gm-tile.sk, .sk-line { background: linear-gradient(90deg, var(--panel-2) 30%, var(--line) 50%, var(--panel-2) 70%) 0 0 / 300% 100%; animation: shimmer 1.4s linear infinite; border-radius: 8px; }
.sk-line { height: 10px; }
.sk-line.w40 { width: 40%; } .sk-line.w60 { width: 60%; } .sk-line.w70 { width: 70%; } .sk-line.w80 { width: 80%; }
.gm-b.sk { height: 46px; border-radius: 12px; }

/* L'animation : l'épingle tombe, la fiche remonte, les étoiles se remplissent, les numéros apparaissent. */
@keyframes gm-drop { 0% { transform: translate(-50%, -260%); opacity: 0; } 55% { transform: translate(-50%, -100%); opacity: 1; } 70% { transform: translate(-50%, -125%); } 85% { transform: translate(-50%, -100%); } 93% { transform: translate(-50%, -106%); } 100% { transform: translate(-50%, -100%); } }
@keyframes gm-pop-pin { from { transform: translate(-50%, -100%) scale(0); } to { transform: translate(-50%, -100%) scale(1); } }
@keyframes gm-ripple { 0% { opacity: .8; transform: translate(-50%, -50%) scale(.3); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(2.4); } }
@keyframes gm-sheet { from { transform: translateY(100%); } to { transform: none; } }
@keyframes gm-fill { from { --fill: 0%; } to { --fill: var(--pct); } }
@property --fill { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
@keyframes gm-spot-in { 0% { transform: scale(0); } 60% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes gm-glow { 0%, 100% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--urgent) 25%, transparent); } 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--urgent) 10%, transparent); } }
.gm-wrap.play .gm-pin.small { animation: gm-pop-pin .35s cubic-bezier(.2, 1.4, .4, 1) both; animation-delay: calc(150ms + var(--i, 0) * 80ms); }
.gm-wrap.play .gm-pin.me { animation: gm-drop .9s cubic-bezier(.3, .8, .4, 1) .55s both; }
.gm-wrap.play .gm-ripple { animation: gm-ripple 1.6s ease-out 1.35s 2; }
.gm-wrap.play .gm-card { animation: gm-sheet .7s cubic-bezier(.2, .9, .25, 1) .9s both; }
.gm-wrap.play .gm-stars::after { animation: gm-fill 1s ease 1.5s both; }
.gm-wrap.play .gm-tile { animation: pop-in .4s ease both; animation-delay: calc(1.3s + var(--i, 0) * 90ms); }
.gm-wrap.play .gm-spot { animation: gm-spot-in .45s cubic-bezier(.2, 1.4, .4, 1) both, gm-glow 1.8s ease-in-out 2.6s infinite; animation-delay: calc(1.9s + var(--d, 0) * 180ms), calc(2.6s + var(--d, 0) * 180ms); }
.gm-wrap.play .gm-spot.done { animation: gm-spot-in .45s cubic-bezier(.2, 1.4, .4, 1) 1.8s both; }
.gm-wrap.play .gm-list li { animation: rise-in .4s ease both; }
.gm-wrap.play .gm-list li:nth-child(1) { animation-delay: .3s; } .gm-wrap.play .gm-list li:nth-child(2) { animation-delay: .38s; } .gm-wrap.play .gm-list li:nth-child(3) { animation-delay: .46s; }
.gm-wrap.play .gm-list li:nth-child(4) { animation-delay: .54s; } .gm-wrap.play .gm-list li:nth-child(5) { animation-delay: .62s; } .gm-wrap.play .gm-list li:nth-child(6) { animation-delay: .7s; }
.gm-wrap.play .gm-phone.is-after .gm-filled { animation: gm-sparkle 1s ease 1.7s both; }
@keyframes gm-sparkle { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); } 60% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 0%, transparent); } 100% { box-shadow: none; } }
.gm-wrap:not(.play) .gm-stars::after { --fill: var(--pct); }
/* Bascule « Avec Balise » : seuls les points changés s'animent. */
.gm-wrap.swap .gm-filled { animation: gm-sparkle 1s ease .1s both; }
.gm-wrap.swap .gm-b.gm-filled i, .gm-wrap.swap .gm-spot { animation: gm-spot-in .45s cubic-bezier(.2, 1.4, .4, 1) both; animation-delay: calc(.1s + var(--d, 0) * 120ms); }
.gm-wrap.swap .gm-tile { animation: pop-in .4s ease both; animation-delay: calc(var(--i, 0) * 70ms); }
.gm-wrap.swap .gm-list li { animation: rise-in .35s ease both; }
.gm-wrap.swap .gm-list li:nth-child(2) { animation-delay: .06s; } .gm-wrap.swap .gm-list li:nth-child(3) { animation-delay: .12s; } .gm-wrap.swap .gm-list li:nth-child(4) { animation-delay: .18s; } .gm-wrap.swap .gm-list li:nth-child(5) { animation-delay: .24s; } .gm-wrap.swap .gm-list li:nth-child(6) { animation-delay: .3s; }
@media (max-width: 860px) {
  .gm-grid { grid-template-columns: minmax(0, 1fr); }
  .gm-phone { max-width: 300px; }
}

/* Dans la feuille blanche du récap : mêmes couleurs claires en mode nuit. */
.rc-hint { margin: 0 0 14px; padding: 10px 14px; border-radius: 14px; background: #fff6e2; border: 1px solid #f0d8a4; color: var(--rc-ink); font-size: .88rem; }
.rc-hint .link-btn { color: #0b7a4f; }
@media print { .rc-hint { display: none !important; } }
#mail-state.on { color: var(--ok-ink); font-weight: 600; }
#mail-setup .setup-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
/* Merci après l'achat d'une formule : la fenêtre couvre l'écran (les confettis passent devant), la carte au centre. */
.merci-dlg { border: 0; margin: 0; padding: 16px; width: 100vw; height: 100vh; height: 100dvh; max-width: 100vw; max-height: 100vh; max-height: 100dvh; background: transparent; overflow: hidden; }
.merci-dlg[open] { display: grid; place-items: center; }
.merci-dlg::backdrop { background: rgba(10, 14, 12, .55); backdrop-filter: blur(3px); }
.merci-carte { position: relative; width: min(420px, 100%); padding: 34px 28px 26px; border-radius: 24px; background: var(--panel); color: var(--ink); text-align: center; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); animation: merci-in .5s cubic-bezier(.2, .9, .3, 1.15) both; }
.merci-ico { width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; color: var(--ok-ink); background: var(--accent-soft); box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 16%, transparent); animation: pop-in .55s .12s ease both; }
.merci-ico svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.merci-carte h2 { margin: 0 0 10px; font-size: 1.55rem; letter-spacing: -.01em; }
.merci-formule { margin: 0; line-height: 1.5; }
.merci-site { display: block; margin-top: 2px; color: var(--muted); font-size: .88rem; overflow-wrap: anywhere; }
.merci-art { display: block; width: max-content; max-width: 100%; margin: 12px auto 0; padding: 4px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel-2); font-size: .85rem; font-weight: 600; }
.merci-texte { margin: 16px 0 24px; color: var(--muted); }
.merci-ok { min-width: 180px; justify-content: center; }
@keyframes merci-in { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .merci-carte, .merci-ico { animation: none; } }
/* « Un souci ou une idée ? » */
.retour-dlg { border: 0; padding: 0; border-radius: 24px; background: var(--panel); color: var(--ink); width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.retour-dlg::backdrop { background: rgba(10, 14, 12, .55); backdrop-filter: blur(3px); }
.retour-form, .retour-ok { padding: 24px; animation: rise-in .3s ease both; }
.retour-form { display: grid; gap: 16px; }
.retour-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.retour-head h2 { margin: 0 0 4px; font-size: 1.3rem; }
.retour-head p { margin: 0; }
.retour-types { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.retour-types label { cursor: pointer; }
.retour-types input { position: absolute; opacity: 0; pointer-events: none; }
.retour-types span { display: inline-block; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel); font-size: .9rem; font-weight: 500; transition: background .15s, border-color .15s; }
.retour-types label:hover span { border-color: var(--ink); }
.retour-types input:checked + span { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); }
.retour-types input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.retour-l { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.retour-l textarea, .retour-l input { font: inherit; font-weight: 400; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; width: 100%; resize: vertical; }
.retour-l textarea:focus, .retour-l input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.retour-drop { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1.5px dashed var(--line); border-radius: 16px; cursor: pointer; transition: border-color .15s, background .15s; }
.retour-drop:hover, .retour-drop.over { border-color: var(--accent); background: var(--accent-soft); }
.retour-drop > span:last-child { display: grid; gap: 2px; }
.retour-drop-ico { font-size: 1.5rem; }
.retour-apercu { display: grid; gap: 8px; justify-items: start; }
.retour-apercu img { max-width: 100%; max-height: 170px; border-radius: 12px; border: 1px solid var(--line); }
.retour-joindre { display: flex; flex-direction: row; align-items: flex-start; gap: 10px; font-size: .9rem; font-weight: 400; cursor: pointer; }
.retour-joindre input { margin-top: 3px; accent-color: var(--accent); }
.retour-details { margin-top: -8px; font-size: .85rem; }
.retour-details summary { cursor: pointer; color: var(--muted); }
.retour-details pre { margin: 8px 0 0; padding: 12px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; font-size: .8rem; max-height: 200px; overflow: auto; }
.retour-pied { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.retour-etat { margin-right: auto; color: var(--urgent-ink); font-size: .88rem; }
.retour-ok { text-align: center; }
.retour-ok h2 { margin: 0 0 8px; }
.retour-ok p { margin: 0 0 22px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .retour-form, .retour-ok { animation: none; } }
.demo-dlg { border: 0; padding: 16px; border-radius: 24px; background: var(--panel); color: var(--ink); width: min(560px, calc(100vw - 32px)); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.demo-dlg::backdrop { background: rgba(10, 14, 12, .55); backdrop-filter: blur(3px); }
.demo-dlg[open] { animation: rise .3s ease both; }
.demo-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.demo-head > div { display: flex; flex-direction: column; gap: 2px; }
.demo-dlg video { display: block; width: 100%; aspect-ratio: 1280 / 1026; max-height: 72vh; border-radius: 16px; background: #000; }
/* Ce que les IA rapporteront : recommandations par mois, aujourd'hui → avec le plan. */
.gain-ia { min-width: 0; }
.gain-ia-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gain-ia-from { font-size: 1.6rem; font-weight: 700; color: var(--muted); text-decoration: line-through; text-decoration-thickness: 2px; }
.gain-ia-arrow { font-size: 1.4rem; color: var(--muted); }
.gain-pill.ia { background: var(--accent-strong); color: var(--on-accent); margin-right: 0; }
.gain-ia .small { margin: 8px 0 0; max-width: 46ch; }
.ia-bar { position: relative; display: block; height: 6px; border-radius: 99px; background: var(--line); margin: 10px 0 2px; }
.ia-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: var(--urgent); }
.ia-bar b { position: absolute; top: -3px; width: 2px; height: 12px; border-radius: 2px; background: var(--accent-strong); }
.channel.ia-card .num { color: var(--accent-strong); }
.eng-tag { white-space: nowrap; }
/* Ce que recherchent vos clients */
.kw-block .block-head { align-items: flex-start; }
.kw-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0 0 14px; }
.kw-form input { flex: 1 1 260px; min-width: 0; }
.kw-list { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.kw-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto 30px; grid-template-areas: "c m v x" "b b v x"; column-gap: 12px; row-gap: 8px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); animation: rise .35s ease both; animation-delay: calc(var(--i, 0) * 50ms); }
.kw-row:last-child { border-bottom: 0; }
.kw-check { grid-area: c; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line); color: transparent; }
.kw-check.on { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent-strong) 45%, transparent); color: var(--accent-strong); }
.kw-check .ico, .kw-check svg { width: 13px; height: 13px; }
.kw-mot { grid-area: m; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 1rem; }
.kw-mot code { font-size: .7rem; color: var(--muted); background: transparent; padding: 0; }
.kw-mot em { font-style: normal; font-size: .75rem; color: var(--urgent-ink); }
.kw-vol { grid-area: v; display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.kw-vol b { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.kw-vol small { font-size: .74rem; color: var(--muted); }
.kw-x { grid-area: x; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--muted); cursor: pointer; font-size: 1rem; line-height: 1; }
.kw-x:hover { color: var(--ink); border-color: var(--ink); }
.kw-bar { grid-area: b; display: block; height: 4px; border-radius: 99px; background: var(--line); overflow: hidden; }
.kw-bar i { display: block; height: 100%; border-radius: 99px; background: var(--ink); transition: width .6s ease; }
.kw-note { margin: 10px 0 0; }
.ia-bar i.mid { background: var(--ameliorer); }
.ia-bar i.good { background: var(--accent-strong); }
.gain-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; gap: 18px 28px; }
.gain-hero .gain-side { grid-column: 1 / -1; text-align: left; max-width: none; border-top: 1px solid var(--line); padding-top: 12px; }
/* Photo jointe à un post Google */
.t-drop { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 12px 14px; border: 1.5px dashed var(--line); border-radius: 16px; cursor: pointer; color: var(--ink); font-size: .92rem; font-weight: 400; flex-direction: row; transition: border-color .2s, background .2s; }
.t-drop:hover, .t-drop.over { border-color: var(--accent-strong); background: var(--accent-soft); }
.t-drop > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.t-drop-ico { font-size: 1.4rem; }
.t-photo { display: flex; gap: 12px; align-items: center; margin-top: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel-2); }
.t-photo img { width: 84px; height: 84px; object-fit: cover; border-radius: 12px; flex: none; }
.t-photo > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.t-photo-a { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; }
/* Trafic amené par les IA */
.iat-src { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.iat-site { border: 1px solid var(--line); border-radius: 12px; padding: 6px 12px; font-weight: 600; background: var(--panel); }
.iat-panel { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.iat-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.iat-tab { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 18px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--panel-2); color: var(--muted); cursor: pointer; text-align: left; min-width: 0; }
.iat-tab:last-child { border-right: 0; }
.iat-tab.on { background: var(--panel); color: var(--ink); border-bottom-color: transparent; }
.iat-name { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .95rem; }
.iat-name .engine-logo { width: 22px; height: 22px; font-size: .7rem; }
.iat-val { font-size: 1.7rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; color: var(--ink); }
.iat-tab:not(.on) .iat-val { opacity: .55; }
.iat-chart-wrap { padding: 16px 18px 10px; background: var(--panel); }
.iat-cap { margin: 0 0 6px; }
.iat-svg { width: 100%; height: auto; display: block; }
.iat-line { fill: none; stroke: var(--accent-strong); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.iat-grid { stroke: var(--line); stroke-dasharray: 3 5; }
.iat-tick { fill: var(--muted); font-size: 12px; }
.iat-empty .help { margin-top: 6px; }
@media (max-width: 860px) { .iat-tab { padding: 12px 14px; } .iat-val { font-size: 1.45rem; } }
@media (max-width: 700px) { .iat-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .iat-tab:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.engine-logo.cop { background: linear-gradient(135deg, #2f7cf6, #22b3a6); color: #fff; border-color: transparent; }
/* Ce que vos clients recherchent (Search Console) */
.q-list .q-head, .q-row { display: grid; grid-template-columns: minmax(0, 1fr) 90px 60px 70px; column-gap: 12px; align-items: center; padding: 10px 16px; }
.q-head { font-size: .78rem; font-weight: 600; color: var(--muted); background: var(--panel-2); border-bottom: 1px solid var(--line); }
.q-head span:not(:first-child), .q-n { text-align: right; font-variant-numeric: tabular-nums; }
.q-row { row-gap: 8px; border-bottom: 1px solid var(--line); animation: rise .35s ease both; animation-delay: calc(var(--i, 0) * 40ms); }
.q-row:last-child { border-bottom: 0; }
.q-mot { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-row .kw-bar { grid-area: auto; grid-column: 1 / -1; }
/* Téléphone : la recherche sur toute la largeur, les chiffres en dessous. */
@media (max-width: 560px) {
  .q-list .q-head, .q-row { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 10px 12px; }
  .q-head span:first-child { display: none; }
  .q-mot { grid-column: 1 / -1; white-space: normal; overflow-wrap: anywhere; font-weight: 500; }
}
/* Sous-parties en haut de page (Référencement SEO / Référencement IA) */
.subnav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; margin: -6px 0 18px; padding: 8px 0; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); }
.subnav-group { display: flex; gap: 6px; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--line); border-radius: 99px; padding: 5px; width: fit-content; max-width: 100%; }
.sub-item { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 600; font-size: .92rem; padding: 8px 16px; border-radius: 99px; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s; }
.sub-item:hover { color: var(--ink); background: var(--panel-2); }
.sub-item.active { background: var(--btn); color: var(--btn-ink); }
.sub-item .pts { margin-left: 0; }
.sub-item.active .pts { color: var(--btn-ink); }
.sub-item .pts:empty { display: none; }
@media (max-width: 700px) { .subnav-group { flex-wrap: nowrap; overflow-x: auto; border-radius: 18px; } }
/* ---------- Stratégie SEO ---------- */
.strat-empty { text-align: center; padding: 34px 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.strat-empty p { max-width: 60ch; margin: 0; }
.strat-empty-art { display: flex; align-items: flex-end; gap: 6px; height: 56px; margin-bottom: 6px; }
.strat-empty-art i { width: 14px; border-radius: 5px 5px 2px 2px; background: var(--accent-strong); opacity: calc(1 - var(--i) * .14); height: calc(60px - var(--i) * 9px); animation: rise .6s ease both; animation-delay: calc(var(--i) * 90ms); }
.strat-run { display: flex; gap: 14px; align-items: center; }
.strat-run p { margin: 4px 0 0; }
.bench-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; margin: 6px 0 10px; }
.bench { width: 100%; border-collapse: collapse; font-size: .92rem; }
.bench th { text-align: left; font-size: .76rem; font-weight: 600; color: var(--muted); background: var(--panel-2); padding: 9px 12px; white-space: nowrap; }
.bench td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.bench td:first-child { color: var(--muted); font-weight: 700; width: 28px; }
.ok-ink { color: var(--ok-ink); font-weight: 600; }
.strat-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.strat-two .card-block { margin: 0 0 16px; }
.strat-list { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.strat-list li { position: relative; padding-left: 22px; line-height: 1.5; }
.strat-list li::before { content: "◆"; position: absolute; left: 0; top: 1px; font-size: .7rem; color: var(--muted); }
.strat-list.go li::before { content: "→"; font-size: .9rem; top: -1px; color: var(--accent-strong); font-weight: 700; }
.personas { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin-top: 12px; }
.persona { border: 1px solid var(--line); border-radius: 20px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; background: var(--panel-2); }
.persona.main { border-color: color-mix(in srgb, var(--accent-strong) 45%, var(--line)); background: color-mix(in srgb, var(--accent-soft) 45%, var(--panel)); }
.persona-tag { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.persona.main .persona-tag { color: var(--ok-ink); }
.persona-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.persona-cols small { font-weight: 600; color: var(--muted); }
.persona-cols ul { margin: 4px 0 0; padding-left: 18px; font-size: .9rem; display: grid; gap: 3px; }
.persona-q { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 520px) { .persona-cols { grid-template-columns: 1fr; } }
.idees { display: grid; gap: 2px; margin-top: 10px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.idee { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 16px; background: var(--panel); border-bottom: 1px solid var(--line); animation: rise .35s ease both; animation-delay: calc(var(--i, 0) * 45ms); }
.idee:last-child { border-bottom: 0; }
.idee-score { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--accent-strong) calc(var(--s) * 1%), var(--line) 0); }
.idee-score b { width: 36px; height: 36px; border-radius: 50%; background: var(--panel); display: grid; place-items: center; font-size: .9rem; }
.idee-t { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.idee-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.int-commerciale { color: var(--ok-ink); background: var(--accent-soft); border-color: transparent; }
.int-locale { color: var(--ameliorer-ink); background: color-mix(in srgb, var(--ameliorer) 14%, transparent); border-color: transparent; }
.idee-ok { color: var(--ok-ink); font-weight: 600; font-size: .88rem; white-space: nowrap; }
@media (max-width: 600px) { .idee { grid-template-columns: 46px minmax(0, 1fr); } .idee > .btn, .idee-ok { grid-column: 2; justify-self: start; } }

/* ---------- Articles ---------- */
.art-reglages { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.art-reg { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.art-reg-l { font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.art-reg-note { flex-basis: 100%; margin: 0; }
.art-heure, .art-cat select, .pop-heure select { border: 1px solid var(--line); background: var(--panel); border-radius: 10px; padding: 6px 10px; font: inherit; color: var(--ink); }
.art-heure:focus, .art-cat select:focus, .pop-heure select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.art-reg .art-heure + .muted { flex: 1 1 320px; }
.art-ou { flex-basis: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; align-items: start; padding-top: 12px; border-top: 1px solid var(--line); }
.art-ou > .art-reg-l { padding-top: 3px; }
.art-ou p { margin: 0; }
.art-ou-d { display: grid; gap: 8px; min-width: 0; }
.art-ou-d a { color: var(--accent); overflow-wrap: anywhere; }
.art-ou-d code { display: inline-block; max-width: 100%; margin-top: 4px; font-family: ui-monospace, Consolas, monospace; font-size: .82rem; background: var(--panel-2); padding: 2px 8px; border-radius: 6px; overflow-wrap: anywhere; }
.art-claude { display: grid; gap: 8px; justify-items: start; }
.art-note { margin: 0 0 8px; }
.art-claude details { width: 100%; }
.art-claude summary { cursor: pointer; font-size: .85rem; color: var(--muted); }
.art-claude pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 280px; overflow: auto; font-family: ui-monospace, Consolas, monospace; font-size: .76rem; line-height: 1.5; background: var(--panel-2); border-radius: 10px; padding: 10px 12px; margin: 6px 0 0; }
.art-cat { display: flex; flex-direction: row; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 600; font-size: .9rem; color: var(--ink); }
.art-cat select { max-width: 100%; min-width: 0; font-weight: 400; }
.pop-heure { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-weight: 600; font-size: .9rem; color: var(--ink); }
@media (max-width: 640px) { .art-ou { grid-template-columns: 1fr; } }
.cal-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cal-nav b { min-width: 9em; text-align: center; text-transform: capitalize; }
.cal-wrap { overflow-x: auto; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(92px, 1fr)); gap: 6px; min-width: 680px; margin-top: 8px; }
.cal-h { font-size: .74rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding: 0 6px; }
.cal-d { min-height: 92px; border: 1px solid var(--line); border-radius: 14px; padding: 6px; display: flex; flex-direction: column; gap: 4px; background: var(--panel); min-width: 0; }
.cal-d.void { border-style: dashed; background: transparent; opacity: .4; }
.cal-d.past { background: var(--panel-2); }
.cal-d.today { border-color: var(--accent-strong); box-shadow: 0 0 0 2px var(--accent-soft); }
.cal-n { font-size: .8rem; font-weight: 700; color: var(--muted); }
.cal-d.today .cal-n { color: var(--accent-strong); }
.cal-a { display: flex; align-items: center; gap: 5px; text-align: left; border: 0; border-radius: 8px; padding: 4px 7px; font: inherit; font-size: .76rem; font-weight: 600; line-height: 1.25; cursor: pointer; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cal-img { display: none; }
.st-prevu { background: var(--panel-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.st-redige { background: color-mix(in srgb, var(--ameliorer) 18%, transparent); color: var(--ameliorer-ink); }
.st-envoye { background: color-mix(in srgb, #4a7dff 16%, transparent); color: #3a63cc; }
.st-publie { background: var(--accent-soft); color: var(--ok-ink); }
[data-mode="dark"] .st-envoye { color: #8fb0ff; }
.cal-leg { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; font-size: .8rem; color: var(--muted); }
.cal-leg i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 6px; vertical-align: -2px; }
.art-list { display: grid; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; margin-top: 8px; }
.art-row { display: grid; grid-template-columns: 46px 64px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--panel); animation: rise .35s ease both; animation-delay: calc(var(--i, 0) * 30ms); }
.art-row:last-child { border-bottom: 0; }
.art-date { display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.art-date b { font-size: 1.2rem; }
.art-date small { color: var(--muted); font-size: .72rem; text-transform: uppercase; }
.art-thumb { width: 64px; height: 44px; border-radius: 10px; object-fit: cover; }
.art-thumb.ph { display: grid; place-items: center; background: var(--panel-2); color: var(--muted); border: 1px dashed var(--line); }
.art-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.art-t b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.art-st { font-size: .74rem; font-weight: 700; border-radius: 99px; padding: 4px 10px; white-space: nowrap; }
@media (max-width: 640px) { .art-row { grid-template-columns: 40px minmax(0, 1fr) auto; } .art-thumb, .art-st { display: none; } }
/* Fenêtre d'un article */
.art-dlg { border: 0; padding: 0; border-radius: 24px; background: var(--panel); color: var(--ink); width: min(860px, calc(100vw - 32px)); max-height: calc(100vh - 40px); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); overflow: hidden; }
.art-dlg[open] { display: flex; flex-direction: column; animation: rise .3s ease both; }
.art-dlg::backdrop { background: rgba(10, 14, 12, .55); backdrop-filter: blur(3px); }
.art-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.art-when { display: flex; flex-direction: row; align-items: center; gap: 8px; margin-left: auto; font-weight: 500; }
.art-scroll { overflow-y: auto; padding: 18px 22px; display: flex; flex-direction: column; gap: 14px; }
.art-img { position: relative; border-radius: 18px; overflow: hidden; background: var(--panel-2); aspect-ratio: 3 / 2; max-height: 340px; }
.art-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.art-img-ph { height: 100%; display: grid; place-items: center; color: var(--muted); padding: 20px; text-align: center; font-size: .9rem; }
.art-img-a { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 6px; }
.art-img-a .btn { background: color-mix(in srgb, var(--panel) 92%, transparent); }
.art-title { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; border: 0; border-bottom: 1px dashed var(--line); background: transparent; border-radius: 0; padding: 4px 0; color: var(--ink); width: 100%; }
.art-meta { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; }
.art-meta input { width: 100%; min-width: 0; }
@media (max-width: 640px) { .art-meta { grid-template-columns: 1fr; } }
.art-content { line-height: 1.7; font-size: 1rem; outline: none; border-radius: 12px; padding: 4px 2px; }
.art-content:focus { box-shadow: 0 0 0 2px var(--accent-soft); }
.art-content h2 { font-size: 1.25rem; margin: 22px 0 6px; }
.art-content h3 { font-size: 1.05rem; margin: 16px 0 4px; }
.art-content p { margin: 0 0 12px; }
.art-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--line); background: var(--panel-2); }
.art-actions .grow { flex: 1; }
.danger-link { color: var(--urgent-ink); }
.art-writing { padding: 40px 28px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.art-scroll > * { flex-shrink: 0; }
.plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plan-band { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border: 1px dashed var(--line); border-radius: 24px; padding: 18px 24px; background: var(--panel); }
.plan-band > div { display: flex; flex-direction: column; gap: 2px; }
.plan-art { margin: 10px 0 0; display: inline-flex; align-items: baseline; gap: 6px; background: var(--accent-soft); color: var(--ok-ink); border-radius: 12px; padding: 6px 12px; width: fit-content; font-weight: 600; }
.plan-art b { font-size: 1.3rem; }
@media (max-width: 1100px) { .plans { grid-template-columns: 1fr; max-width: 560px; } }
.art-warn { margin: -4px 0 0; padding: 8px 12px; border-radius: 12px; background: color-mix(in srgb, var(--ameliorer) 14%, transparent); color: var(--ameliorer-ink); font-size: .88rem; font-weight: 500; }
.eng-pill.warn { color: var(--ameliorer-ink); background: color-mix(in srgb, var(--ameliorer) 16%, transparent); font-size: .78rem; letter-spacing: 0; font-weight: 600; }
.eng-fail { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--ameliorer) 10%, var(--panel)); border: 1px solid color-mix(in srgb, var(--ameliorer) 30%, var(--line)); }
.eng-fail p { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.eng-list > .eng-fail:first-child { margin-top: 0; }
.eng-list-top { flex-wrap: wrap; }
.eng-rank.off { white-space: nowrap; }
.subnav-note { margin: 8px 4px 0; font-size: .8rem; color: var(--muted); }
.subnav-note:empty { display: none; }
.subnav-note b { color: var(--ink); font-weight: 600; }
.eng-list li .nm-wrap { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.eng-list li .nm-why { font-size: .76rem; font-weight: 400; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.old-method { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin: 4px 0 12px; padding: 12px 16px; border-radius: 16px; background: color-mix(in srgb, var(--ameliorer) 10%, var(--panel)); border: 1px solid color-mix(in srgb, var(--ameliorer) 32%, var(--line)); }
.old-method > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }

/* ---------- Articles : parcours, mois, calendrier, idées, style du site ---------- */
.warn-ink { color: var(--ameliorer-ink); font-weight: 600; }
.eyebrow { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
#view-articles .card-block, #view-strategie .card-block { margin-bottom: 16px; }
.etapes-a { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; counter-reset: none; }
.etapes-a button { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; border: 1px solid var(--line); background: var(--panel); border-radius: 18px; padding: 10px 14px; cursor: pointer; font: inherit; color: inherit; transition: border-color .15s ease; }
.etapes-a button:hover { border-color: var(--ink); }
.etapes-a i { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: .9rem; background: var(--panel-2); color: var(--muted); border: 1px solid var(--line); }
.etapes-a span { display: flex; flex-direction: column; min-width: 0; }
.etapes-a small { color: var(--muted); font-size: .78rem; }
.etapes-a .fait i { background: var(--accent-soft); color: var(--ok-ink); border-color: transparent; }
.etapes-a .ici button { border-color: var(--accent-strong); box-shadow: 0 0 0 3px var(--accent-soft); }
.etapes-a .ici i { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); }
@media (max-width: 760px) { .etapes-a { grid-template-columns: 1fr; } .etapes-a small { display: none; } }
.art-vide { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.art-vide p { margin: 4px 0 0; }
.mois-card { display: flex; flex-direction: column; gap: 12px; }
.mois-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; }
.mois-top h2 { font-size: 1.55rem; }
.mois-jauge { display: flex; flex-direction: column; gap: 6px; min-width: min(320px, 100%); font-size: .9rem; color: var(--muted); }
.mois-jauge b { color: var(--ink); font-size: 1.05rem; }
.jauge { height: 10px; border-radius: 99px; background: var(--ring-track); overflow: hidden; }
.jauge i { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width .5s ease; }
.jauge.plein i { background: var(--accent-strong); }
.mois-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.mois-chips .chip { border: 0; font-weight: 600; }
.mois-next { margin: 0; font-size: .92rem; }
.mois-next .link-btn { color: var(--ink); text-align: left; }
.mois-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cal-zone { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.cal-zone > .card-block { margin-bottom: 0; }
.cal-zone + .card-block { margin-top: 16px; }
@media (max-width: 1180px) { .cal-zone { grid-template-columns: minmax(0, 1fr); } }
.cal-zone > * { min-width: 0; }
.cal-card .block-head { margin-bottom: 12px; }
.cal-card .cal-wrap { margin: 0 -6px; padding: 0 6px 6px; }
.cal-d { position: relative; min-height: 104px; transition: background .12s ease, border-color .12s ease, box-shadow .12s ease; }
.cal-a { width: 100%; display: flex; align-items: center; gap: 6px; -webkit-line-clamp: unset; overflow: hidden; padding: 4px 6px 4px 4px; user-select: none; cursor: grab; position: relative; }
.cal-a[data-drag]:active { cursor: grabbing; }
.cal-a:not([data-drag]) { cursor: pointer; }
.cal-a img, .cal-a .spinner { flex: none; width: 26px; height: 26px; border-radius: 6px; object-fit: cover; -webkit-user-drag: none; }
.cal-a .spinner { width: 16px; height: 16px; margin: 5px; }
.cal-a span:last-child { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.22; }
.cal-a.en-cours { background: var(--panel-2); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.cal-a.source { opacity: .35; }
.cal-plus { position: absolute; right: 6px; top: 5px; width: 24px; height: 24px; border-radius: 50%; border: 1px dashed var(--line); background: var(--panel); color: var(--muted); font-size: 1rem; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .15s ease, transform .15s ease; }
.cal-d:hover .cal-plus, .cal-plus:focus-visible { opacity: 1; }
.cal-plus:hover { border-style: solid; border-color: var(--ink); color: var(--ink); transform: scale(1.08); }
@media (hover: none) { .cal-plus { opacity: .8; } }
.cal-d.cible { border-color: var(--accent-strong); background: var(--accent-soft); box-shadow: 0 0 0 2px var(--accent); }
.cal-d.interdit { background: color-mix(in srgb, var(--urgent) 8%, var(--panel)); border-color: color-mix(in srgb, var(--urgent) 40%, var(--line)); cursor: not-allowed; }
body.en-glisse, body.en-glisse * { cursor: grabbing !important; user-select: none; }
.glisse-fantome { position: fixed; left: 0; top: 0; z-index: 10000; pointer-events: none; max-width: 260px; padding: 8px 12px; border-radius: 12px; background: var(--btn); color: var(--btn-ink); font-size: .82rem; font-weight: 600; line-height: 1.3; box-shadow: 0 12px 30px rgba(0, 0, 0, .25); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; rotate: -2deg; }
.idees-panel { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 10px; max-height: calc(100vh - 32px); }
.idees-panel h3 { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; }
.idees-panel h3 .pts { background: var(--panel-2); border-radius: 99px; padding: 1px 8px; }
.idees-panel > p { margin: 0; }
/* Article glissé vers « Idées à placer » : la colonne devient la zone où le déposer pour le retirer du calendrier. */
.idees-retour { display: none; margin: 0; padding: 10px 12px; border: 2px dashed var(--accent); border-radius: 12px; text-align: center; font-weight: 600; font-size: .9rem; color: var(--accent-strong); background: var(--accent-soft); }
body.glisse-article .idees-panel .idees-retour { display: block; }
.idees-panel.cible { box-shadow: 0 0 0 2px var(--accent); border-color: var(--accent-strong); }
.idees-panel.interdit { box-shadow: 0 0 0 2px color-mix(in srgb, var(--urgent) 55%, transparent); cursor: not-allowed; }
.idees-panel.interdit .idees-retour { border-color: color-mix(in srgb, var(--urgent) 55%, var(--line)); color: var(--urgent); background: color-mix(in srgb, var(--urgent) 8%, var(--panel)); }
.idees-l { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; margin: 0 -4px; padding: 2px 4px; }
.idee-c { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 4px 10px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); cursor: grab; user-select: none; transition: border-color .15s ease, box-shadow .15s ease; }
.idee-c:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: 0 2px 10px rgba(0, 0, 0, .06); }
.idee-c > .btn { grid-column: 2; justify-self: start; padding: 4px 12px; font-size: .8rem; }
.idee-s { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; font-weight: 700; background: conic-gradient(var(--accent-strong) calc(var(--s) * 1%), var(--line) 0); position: relative; flex: none; }
.idee-s::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--panel); }
.idee-s { isolation: isolate; }
.idee-s::before { z-index: -1; }
.idee-ct { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.idee-ct b { font-size: .86rem; line-height: 1.3; }
.idee-ct small { color: var(--muted); font-size: .74rem; }
.idees-bas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.idees-bas .link-btn { font-size: .86rem; }
.idee-ok { border: 0; background: var(--accent-soft); color: var(--ok-ink); border-radius: 99px; padding: 6px 12px; font: inherit; font-size: .84rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.idee-ok:hover { text-decoration: underline; }
.seg button.verrou { color: color-mix(in srgb, var(--muted) 60%, transparent); cursor: not-allowed; display: inline-flex; align-items: center; gap: 5px; }
.seg button.verrou svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.art-verrou { flex-basis: 100%; margin: -4px 0 0; padding: 8px 12px; border-radius: 12px; background: var(--panel-2); font-size: .88rem; }
.style-card .block-head { margin-bottom: 14px; }
.style-card.vide { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.style-card.vide p { margin: 6px 0 0; }
.style-g { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 20px; align-items: start; }
.style-cap { width: 100%; border-radius: 14px; border: 1px solid var(--line); aspect-ratio: 1366 / 900; object-fit: cover; object-position: top; display: block; background: var(--panel-2); }
.style-i { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 16px; align-items: baseline; }
.style-i dt { font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.style-i dd { margin: 0; font-size: .92rem; display: flex; flex-wrap: wrap; gap: 6px 12px; }
.pastille { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; color: var(--muted); }
.pastille i { width: 18px; height: 18px; border-radius: 6px; border: 1px solid rgba(127, 127, 127, .35); display: inline-block; }
@media (max-width: 760px) { .style-g { grid-template-columns: 1fr; } .style-i { grid-template-columns: 1fr; gap: 2px; } .style-i dd { margin-bottom: 8px; } }
.plan-client { margin: 6px 0 0; font-size: .86rem; }
.plan-client.ici { color: var(--ok-ink); font-weight: 600; }
.idees-bas:empty { display: none; }

/* ---------- Petite fenêtre flottante et mini calendrier ---------- */
.art-pop { z-index: 9000; width: min(330px, calc(100vw - 24px)); background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 50px rgba(0, 0, 0, .22); padding: 14px; display: flex; flex-direction: column; gap: 10px; animation: rise .18s ease both; }
.pop-t { margin: 0; font-weight: 700; font-size: .92rem; line-height: 1.35; }
.mc-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.mc-h b { text-transform: capitalize; font-size: .92rem; }
.mc-h button { border: 1px solid var(--line); background: var(--panel); border-radius: 50%; width: 30px; height: 30px; cursor: pointer; color: inherit; font-size: 1rem; }
.mc-h button:hover { border-color: var(--ink); }
.mc-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.mc-g span { text-align: center; font-size: .7rem; font-weight: 700; color: var(--muted); padding: 2px 0; }
.mc-g button { aspect-ratio: 1; border: 0; border-radius: 10px; background: transparent; color: inherit; font: inherit; font-size: .86rem; cursor: pointer; position: relative; }
.mc-g button:hover:not([disabled]) { background: var(--accent-soft); color: var(--ok-ink); }
.mc-g button[disabled] { color: color-mix(in srgb, var(--muted) 50%, transparent); cursor: default; }
.mc-g button.occ::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--accent-strong); }
.mc-g button.auj { box-shadow: inset 0 0 0 1px var(--accent-strong); }
.mc-g button.sel { background: var(--btn); color: var(--btn-ink); }
.mc-plein { margin: 0 0 6px; font-size: .8rem; color: var(--ameliorer-ink); background: color-mix(in srgb, var(--ameliorer) 12%, transparent); border-radius: 10px; padding: 6px 10px; }
.pop-idees { display: flex; flex-direction: column; gap: 4px; max-height: 260px; overflow-y: auto; }
.pop-idees button { display: flex; align-items: center; gap: 10px; text-align: left; border: 1px solid var(--line); background: var(--panel); border-radius: 12px; padding: 7px 10px; font: inherit; font-size: .84rem; cursor: pointer; color: inherit; line-height: 1.3; }
.pop-idees button:hover { border-color: var(--accent-strong); background: var(--accent-soft); }
.pop-idees .idee-s { width: 30px; height: 30px; font-size: .72rem; }
.pop-ou { margin: 0; text-align: center; color: var(--muted); font-size: .8rem; }
.pop-libre { display: flex; gap: 8px; }
.pop-libre input { flex: 1; min-width: 0; }
.art-pop > .muted { margin: 0; }

/* ---------- Fenêtre de l'article ---------- */
.art-dlg { width: min(1240px, calc(100vw - 32px)); height: calc(100vh - 40px); max-height: none; }
.lib-dlg { width: min(980px, calc(100vw - 32px)); height: auto; max-height: calc(100vh - 60px); }
.art-dlg[open] { position: fixed; }
.art-head { flex: none; }
.art-h-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1rem; }
.art-quand { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: var(--panel-2); border-radius: 99px; padding: 6px 12px; font: inherit; font-size: .85rem; font-weight: 500; cursor: pointer; color: inherit; white-space: nowrap; }
.art-quand:hover:not([disabled]) { border-color: var(--ink); }
.art-quand[disabled] { cursor: default; opacity: .75; }
.art-quand svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.art-tabs { flex: none; display: flex; align-items: center; gap: 4px; padding: 8px 14px 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.art-tabs [role="tab"] { border: 0; background: none; font: inherit; font-size: .92rem; font-weight: 600; color: var(--muted); padding: 10px 14px 12px; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.art-tabs [role="tab"]:hover { color: var(--ink); }
.art-tabs [role="tab"][aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.art-tabs .pts { background: var(--panel-2); border-radius: 99px; padding: 0 7px; }
.art-qual { display: inline-flex; gap: 8px; align-items: center; padding-bottom: 6px; flex: none; }
.relu-pill { border: 0; border-radius: 99px; padding: 5px 12px; font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; white-space: nowrap; }
.relu-pill.ok { background: var(--accent-soft); color: var(--ok-ink); }
.relu-pill.warn { background: color-mix(in srgb, var(--ameliorer) 16%, transparent); color: var(--ameliorer-ink); }
.art-corps { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 22px; }
.art-corps[data-onglet-corps="apercu"] { overflow: hidden; padding: 0; display: flex; }
.art-actions { flex: none; }
/* Pourquoi Balise n'envoie plus cet article (modifié dans WordPress, corbeille…) : un bandeau au-dessus des boutons. */
#art-dlg > .art-warn { flex: none; margin: 0; border-radius: 0; padding: 10px 18px; border-top: 1px solid var(--line); }
.ap { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.ap-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--panel-2); }
.ap-bar .seg { background: var(--panel); }
.ap-gab { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; }
.ap-gab.occupe { opacity: .6; }
.ap-gab select, .avant-g select { border: 1px solid var(--line); background: var(--panel); border-radius: 10px; padding: 6px 8px; font: inherit; color: inherit; }
.ap-cadre { flex: 1; min-height: 0; display: flex; justify-content: center; background: repeating-linear-gradient(45deg, var(--panel-2) 0 12px, color-mix(in srgb, var(--panel-2) 70%, var(--line)) 12px 13px); }
.ap-cadre iframe { border: 0; background: #fff; display: block; }
.ap-cadre.ordi iframe { width: 100%; height: 100%; }
.ap-cadre.tel { padding: 18px 0; }
.ap-cadre.tel iframe { width: 390px; max-width: calc(100% - 24px); height: 100%; border-radius: 34px; box-shadow: 0 0 0 10px #15181a, 0 18px 50px rgba(0, 0, 0, .3); }
.art-work { padding: 34px clamp(18px, 5vw, 60px); display: flex; flex-direction: column; gap: 24px; overflow-y: auto; }
.art-work-t { display: flex; gap: 16px; align-items: flex-start; }
.art-work-t .spinner { width: 28px; height: 28px; margin-top: 2px; }
.art-work-t b { font-size: 1.15rem; line-height: 1.35; }
.art-work-t p { margin: 4px 0 0; }
.etapes-r { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; max-width: 640px; }
.etapes-r li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; transition: background .2s ease; }
.etapes-r li > span { display: flex; flex-direction: column; gap: 2px; }
.etapes-r small { color: var(--muted); }
.etapes-r i { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); position: relative; margin-top: 1px; }
.etapes-r li.en-cours { background: var(--panel-2); }
.etapes-r li.en-cours i { border-color: var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; }
.etapes-r li.fait i { border-color: var(--accent); background: var(--accent); }
.etapes-r li.fait i::after { content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid var(--on-accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.etapes-r li.attente { opacity: .55; }
.art-avant { padding: 26px clamp(18px, 4vw, 44px); overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }
.avant-g { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.avant-g > div { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel-2); min-width: 0; }
.avant-g small, .avant-plan small { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.avant-plan ol { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 4px; }
.avant-act { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.tx { display: flex; flex-direction: column; gap: 14px; max-width: 860px; margin: 0 auto; }
.relu { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; flex-wrap: wrap; }
.relu > div { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 2px; }
.relu small { color: var(--muted); }
.relu.ok { background: var(--accent-soft); }
.relu.warn { background: color-mix(in srgb, var(--ameliorer) 12%, var(--panel)); }
.relu-ico { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--panel); }
.relu.ok .relu-ico { color: var(--ok-ink); }
.relu.warn .relu-ico { color: var(--ameliorer-ink); }
.relu-l { margin: -6px 0 0; padding: 10px 14px 10px 32px; border-radius: 14px; background: var(--panel-2); font-size: .86rem; columns: 2; column-gap: 28px; }
.relu-l li { break-inside: avoid; margin-bottom: 4px; }
.relu-l s { color: var(--urgent-ink); }
@media (max-width: 640px) { .relu-l { columns: 1; } }
.relu-pts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.relu-pts li { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--ameliorer) 35%, var(--line)); border-radius: 14px; font-size: .9rem; }
.relu-pts li > span:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.relu-pts small { color: var(--muted); }
.relu-sug { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.art-editeur { border: 1px solid var(--line); border-radius: 16px; padding: 22px clamp(14px, 3vw, 34px); background: var(--panel); font-size: 1.02rem; line-height: 1.7; }
.art-editeur h2 { font-size: 1.32rem; margin: 1.5em 0 .5em; }
.art-editeur h3 { font-size: 1.08rem; margin: 1.2em 0 .4em; }
.art-editeur p, .art-editeur ul { margin: 0 0 1em; }
.art-editeur img { max-width: 100%; }
.art-editeur a { color: var(--ok-ink); }
.ph { display: flex; flex-direction: column; gap: 14px; max-width: 980px; margin: 0 auto; }
.ph > p { margin: 0; }
.ph-slots { display: grid; gap: 14px; }
.ph-slot { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 18px; padding: 14px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); }
.ph-img { width: 100%; max-height: 380px; border-radius: 14px; overflow: hidden; background: var(--panel-2); display: grid; place-items: center; text-align: center; color: var(--muted); font-size: .86rem; padding: 0; }
.ph-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-img > span { padding: 16px; }
.ph-i { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ph-i > small { margin-top: -6px; }
.ph-i label:not(.btn) { display: flex; flex-direction: column; gap: 4px; font-size: .8rem; font-weight: 600; color: var(--muted); }
.ph-i input:not([type=file]) { width: 100%; }
.ph-a { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ph-file { position: relative; overflow: hidden; }
.ph-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ph-desc { display: flex; gap: 8px; }
.ph-desc input { flex: 1; min-width: 0; }
@media (max-width: 720px) { .ph-slot { grid-template-columns: 1fr; } }
.gg { display: flex; flex-direction: column; gap: 18px; max-width: 760px; margin: 0 auto; }
.g-snip { border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; background: #fff; color: #1f1f1f; font-family: Arial, sans-serif; }
.g-site { display: flex; align-items: center; gap: 10px; }
.g-site img, .g-site i { width: 26px; height: 26px; border-radius: 50%; background: #f1f3f4; border: 1px solid #e3e3e3; object-fit: contain; flex: none; }
.g-site span { display: flex; flex-direction: column; line-height: 1.25; font-size: 14px; min-width: 0; }
.g-site small { color: #4d5156; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-t { margin: 10px 0 4px; color: #1a0dab; font-size: 20px; line-height: 1.3; }
.g-d { margin: 0; color: #4d5156; font-size: 14px; line-height: 1.58; }
.g-f { display: grid; gap: 14px; }
.g-f label { display: flex; flex-direction: column; gap: 6px; font-size: .86rem; font-weight: 600; }
.g-f input, .g-f textarea { width: 100%; font: inherit; font-weight: 400; }
.g-f textarea { resize: vertical; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--panel); color: var(--ink); }
.cnt { float: right; font-size: .78rem; font-weight: 600; }
.g-url { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel); }
.g-url > span { padding: 0 4px 0 12px; color: var(--muted); font-weight: 400; white-space: nowrap; max-width: 45%; overflow: hidden; text-overflow: ellipsis; }
.g-url input { border: 0 !important; box-shadow: none !important; border-radius: 0; flex: 1; min-width: 0; }
.art-confirm { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 20; width: min(420px, calc(100% - 32px)); background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); display: flex; flex-direction: column; gap: 14px; }
.art-confirm p { margin: 0; font-weight: 500; }
.art-confirm div { display: flex; justify-content: flex-end; gap: 8px; }
.lib-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; padding: 16px; overflow-y: auto; }
.lib-p { display: flex; flex-direction: column; gap: 6px; text-align: left; border: 2px solid transparent; background: var(--panel-2); border-radius: 16px; padding: 6px; cursor: pointer; font: inherit; font-size: .78rem; color: var(--muted); }
.lib-p:hover { border-color: var(--accent-strong); }
.lib-p.ici { border-color: var(--line); }
.lib-p img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 11px; display: block; }
.lib-p b { color: var(--ink); }
@media (max-width: 760px) {
  .art-dlg { width: 100vw; height: 100dvh; max-width: 100vw; max-height: 100dvh; border-radius: 0; }
  .art-head { padding: 10px 12px; gap: 8px; }
  .art-h-t { flex-basis: 100%; order: 3; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .art-corps { padding: 14px; }
  .art-qual { display: none; }
  .ap-cadre.tel iframe { width: 100%; max-width: 100%; border-radius: 0; box-shadow: none; }
  .ap-cadre.tel { padding: 0; }
  .art-actions { padding: 10px 12px; }
}
.art-avant, .art-work { flex: 1; min-height: 0; }
.art-dlg[data-vue="avant"], .art-dlg[data-vue="travail"], .art-dlg[data-vue=""] { height: auto; width: min(880px, calc(100vw - 32px)); }
@media (max-width: 760px) { .art-dlg[data-vue="avant"], .art-dlg[data-vue="travail"], .art-dlg[data-vue=""] { height: 100dvh; width: 100vw; } }
.art-charge { padding: 30px; margin: 0; }
/* Retouches : alignements, hauteur des petites fenêtres, schémas des mises en page */
.art-head .grow, .art-tabs .grow { flex: 1; }
.art-dlg[data-vue="avant"], .art-dlg[data-vue="travail"], .art-dlg[data-vue=""], .lib-dlg { height: fit-content; max-height: calc(100vh - 40px); }
.lib-dlg .art-head { gap: 10px; }
.lib-dlg .art-head > b { font-size: 1rem; }
.ph-file { color: var(--ink); font-weight: 500; }
.g-l { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.cnt { float: none; }
.schema { display: block; width: 100%; height: auto; }
.schema .s-fond { fill: var(--panel); stroke: var(--line); stroke-width: 1; }
.schema .s-t { fill: var(--muted); opacity: .42; }
.schema .s-h { fill: var(--ink); opacity: .72; }
.schema .s-i { fill: var(--accent); opacity: .5; }
.schema .s-b { fill: var(--accent-soft); stroke: var(--accent); stroke-width: .6; }
.schema .s-a { fill: var(--accent-strong); }
.gab-l { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.gab-o { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px 8px 9px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--panel); cursor: pointer; font: inherit; color: inherit; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.gab-o:hover { border-color: var(--ink); transform: translateY(-2px); }
.gab-o[aria-checked="true"] { border-color: var(--accent-strong); box-shadow: 0 0 0 3px var(--accent-soft); }
.gab-o .schema { width: 64px; }
.gab-o span { font-size: .78rem; font-weight: 600; text-align: center; line-height: 1.2; }
.gab-o small { font-size: .7rem; color: var(--muted); }
.gab-o.occupe, .ap-gab.occupe { opacity: .55; pointer-events: none; }
.avant-gab { display: flex; flex-direction: column; gap: 8px; }
.avant-gab > small { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.avant-gab p { margin: 0; }
.ap-gab { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--panel); border-radius: 14px; padding: 5px 12px 5px 6px; cursor: pointer; font: inherit; color: inherit; text-align: left; }
.ap-gab:hover { border-color: var(--ink); }
.ap-gab .schema { width: 30px; }
.ap-gab span { display: flex; flex-direction: column; line-height: 1.2; }
.ap-gab small { font-size: .68rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.ap-gab b { font-size: .86rem; }
.art-pop.large { width: min(470px, calc(100vw - 24px)); }
.art-pop.large .gab-l { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.art-pop.large .gab-o .schema { width: 54px; }
/* Calendrier : titres plus lisibles */
.cal-a { align-items: flex-start; font-size: .72rem; }
.cal-a span:last-child { -webkit-line-clamp: 3; }
.cal-a img { width: 22px; height: 22px; margin-top: 1px; }
.art-avant .gab-l { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
.art-avant .gab-o { padding: 7px 4px 8px; }
.art-avant .gab-o .schema { width: 100%; max-width: 62px; }
@media (max-width: 820px) { .art-avant .gab-l { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.avant-g { align-items: start; }
@media (max-width: 760px) {
  .art-dlg, .art-dlg[data-vue], .lib-dlg { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; margin: 0; }
  .art-dlg[open] { inset: 0; }
  .cal { min-width: 560px; }
  .cal-d { min-height: 88px; }
}
textarea.art-title { resize: none; overflow: hidden; font: inherit; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; display: block; }
@media (max-width: 640px) { .art-head .art-st { display: inline-block; } textarea.art-title { font-size: 1.25rem; } }

/* ---------- Campagne d'avis du mois (Fiche Google) ---------- */
#fiche-avis { scroll-margin-top: 20px; }
#fiche-avis > .card-block { margin-top: 18px; }
.av h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 1.02rem; }
.av h3 i { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--btn); color: var(--btn-ink); font-style: normal; font-size: .78rem; font-weight: 700; flex: none; }
.av-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.av-stat { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel-2); min-width: 0; }
.av-stat small { font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.av-stat b { font-size: 1.7rem; letter-spacing: -0.02em; line-height: 1.15; }
.av-stat span { font-size: .84rem; color: var(--muted); }
.av-obj { margin: 14px 0 4px; }
.av-obj p { margin: 8px 0 0; }
.av-comp { display: grid; gap: 7px; margin: 16px 0 4px; }
.av-bar { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr) auto; gap: 12px; align-items: center; font-size: .88rem; }
.av-bar > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.av-bar.moi > span:first-child { color: var(--ink); font-weight: 600; }
.av-bar-t { height: 8px; border-radius: 99px; background: var(--ring-track); overflow: hidden; }
.av-bar-t i { display: block; height: 100%; border-radius: inherit; background: color-mix(in srgb, var(--muted) 45%, transparent); }
.av-bar.moi .av-bar-t i { background: var(--accent); }
.av-bar b { font-variant-numeric: tabular-nums; min-width: 3ch; text-align: right; }
.av-histo { margin: 10px 0 0; }
.av-g { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 18px; margin-top: 22px; }
.av-kit, .av-msg { padding: 18px; border: 1px solid var(--line); border-radius: 20px; min-width: 0; }
.av-qr-l { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.av-qr { width: 168px; height: 168px; border-radius: 12px; border: 1px solid var(--line); background: #fff; padding: 6px; flex: none; }
.av-qr-a { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.av-lien { display: flex; gap: 8px; margin-top: 14px; }
.av-lien input { flex: 1; min-width: 0; font-size: .85rem; color: var(--muted); text-overflow: ellipsis; }
.av-kit > p.muted { margin: 8px 0 0; }
.av-manque { margin: 0 0 10px; }
.av-perso { margin-top: 14px; }
.av-perso summary { cursor: pointer; font-weight: 600; font-size: .9rem; }
.av-perso p { margin: 8px 0; }
.av-lien-f { display: flex; gap: 8px; margin-bottom: 8px; }
.av-lien-f input { flex: 1; min-width: 0; }
.av-msg .seg { margin-bottom: 12px; flex-wrap: wrap; }
.av-objet { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin: 0 0 10px; font-size: .92rem; }
.av-objet small { font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.av-objet span { font-weight: 600; }
.av-texte { font-size: .92rem; line-height: 1.6; }
.av-msg-a { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.av-msg-a .muted { flex: 1; min-width: 200px; }
.av-opts { display: flex; gap: 12px 16px; align-items: flex-start; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.av-opts label, .av-ton { display: flex; flex-direction: column; gap: 6px; font-size: .78rem; font-weight: 600; color: var(--muted); }
.av-opts select, .av-opts input { font-size: .88rem; color: var(--ink); }
.av-opts label:last-child { flex: 1; min-width: 180px; }
.av-regles { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-top: 18px; }
.av-regles > div { padding: 14px 16px; border-radius: 18px; font-size: .9rem; }
.av-oui { background: color-mix(in srgb, var(--ok) 9%, transparent); }
.av-non { background: color-mix(in srgb, var(--urgent) 8%, transparent); }
.av-regles b { display: block; margin-bottom: 6px; }
.av-oui b { color: var(--ok-ink); }
.av-non b { color: var(--urgent-ink); }
.av-regles ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 5px; }
.av-regles li { position: relative; padding-left: 22px; line-height: 1.4; }
.av-oui li::before { content: "✓"; position: absolute; left: 2px; font-weight: 700; color: var(--ok-ink); }
.av-non li::before { content: "✕"; position: absolute; left: 2px; font-weight: 700; color: var(--urgent-ink); }
.av-kitmail { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 18px; padding: 18px; border: 1px dashed var(--line); border-radius: 20px; }
.av-kitmail h3 { margin-bottom: 4px; }
.av-kitmail p { margin: 0; max-width: 560px; }
.av-kit-a { display: flex; gap: 8px; flex-wrap: wrap; }
[data-mode="dark"] .av-qr { border-color: transparent; }
@media (max-width: 900px) {
  .av-g { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .av-stats { gap: 8px; }
  .av-stat { padding: 10px 11px; }
  .av-stat small { font-size: .62rem; letter-spacing: .04em; }
  .av-stat b { font-size: 1.3rem; }
  .av-stat span { font-size: .74rem; line-height: 1.3; }
  .av-regles { grid-template-columns: minmax(0, 1fr); }
  .av-bar { grid-template-columns: minmax(0, 110px) minmax(0, 1fr) auto; }
  .av-kit, .av-msg { padding: 14px; }
  .av-lien { flex-wrap: wrap; }
  .av-lien input { flex-basis: 100%; }
  .av-msg .seg button { padding: 6px 10px; }
  .av-texte { min-height: 11em; }
}
/* « Arrêter ce client » : bandeau, zone en bas des articles, fenêtre de confirmation, repère dans la liste. */
.arret-bandeau { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; border-color: color-mix(in srgb, var(--ameliorer) 45%, var(--line)); background: linear-gradient(120deg, color-mix(in srgb, var(--ameliorer) 12%, var(--panel)), var(--panel) 65%); }
.arret-bandeau > div { display: grid; gap: 2px; flex: 1; min-width: 220px; }
.arret-ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--ameliorer) 16%, transparent); color: var(--ameliorer-ink); }
.arret-ico svg, .f-suivi.arret .f-bell svg { width: 20px; height: 20px; fill: currentColor; stroke: none; animation: none; }
.f-suivi.arret { border-style: solid; border-color: color-mix(in srgb, var(--ameliorer) 45%, var(--line)); }
.f-suivi.arret .f-bell { background: color-mix(in srgb, var(--ameliorer) 16%, transparent); color: var(--ameliorer-ink); }
.arret-zone { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap; border-style: dashed; }
.arret-zone p { margin: 4px 0 0; max-width: 62ch; }
.btn.arret-btn { color: var(--urgent-ink); border-color: color-mix(in srgb, var(--urgent) 45%, var(--line)); }
.btn.arret-btn:hover { background: color-mix(in srgb, var(--urgent) 8%, var(--panel)); }
.btn.arret-btn.plein { background: var(--urgent); border-color: var(--urgent); color: #fff; font-weight: 600; }
.btn.arret-btn.plein:hover { background: color-mix(in srgb, var(--urgent) 88%, #000); }
.btn.arret-btn:disabled { opacity: .6; cursor: default; }
.arret-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.arret-liste li { position: relative; padding-left: 30px; line-height: 1.45; }
.arret-liste li::before { position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 700; }
.arret-liste li.stop::before { content: "■"; font-size: .55rem; background: color-mix(in srgb, var(--urgent) 14%, transparent); color: var(--urgent-ink); }
.arret-liste li.garde::before { content: "✓"; background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok-ink); }
.arret-deco { padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel-2); }
.arret-chip { display: inline-block; vertical-align: 1px; margin-left: 4px; padding: 1px 8px; border-radius: 99px; font-size: .72rem; font-weight: 600; background: color-mix(in srgb, var(--ameliorer) 16%, transparent); color: var(--ameliorer-ink); }
@media (max-width: 560px) { .arret-zone .arret-btn, .arret-bandeau .btn { width: 100%; justify-content: center; } }
/* Place sur Google Maps (Accueil) : 70 % de la note SEO. */
.home-place .head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.place-score { font-weight: 700; font-size: 1.05rem; color: var(--c); padding: 4px 12px; border-radius: 99px; background: color-mix(in srgb, var(--c) 13%, transparent); white-space: nowrap; }
.place-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-top: 4px; }
.place-card { border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; background: var(--panel); min-width: 0; display: grid; gap: 10px; align-content: start; }
.place-q { margin: 0; font-size: .9rem; color: var(--muted); overflow-wrap: anywhere; }
.place-q b { color: var(--ink); font-weight: 600; }
.place-rang { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.place-rang b { font-size: 2rem; letter-spacing: -0.03em; line-height: 1; }
.place-rang b sup { font-size: .5em; letter-spacing: 0; margin-left: 1px; vertical-align: .7em; }
.place-rang b.abs { font-size: 1.5rem; }
.place-rang span { color: var(--muted); font-size: .88rem; }
.place-rang.ok b { color: var(--ok-ink); }
.place-rang.ameliorer b { color: var(--ameliorer-ink); }
.place-rang.urgent b { color: var(--urgent-ink); }
.place-top { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font-size: .88rem; }
.place-top li { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 8px; align-items: center; padding: 5px 8px; border-radius: 10px; }
.place-top li.moi { background: var(--accent-soft); font-weight: 600; }
.place-top li.sep { display: block; padding: 0 8px 0 38px; color: var(--muted); line-height: 1; }
.place-top .n { color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
.place-top .nm { min-width: 0; display: flex; align-items: center; gap: 6px; }
.place-top .nm-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.place-top .nm .tag-me { margin-left: 0; flex: none; }
.place-top .av { grid-column: 2; color: var(--muted); font-size: .8rem; font-weight: 400; }
.place-note, .place-evo { margin: 12px 0 0; }
.place-edit { display: grid; gap: 8px; margin: 4px 0 14px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel-2); }
.place-edit label { font-size: .9rem; font-weight: 500; }
.place-edit textarea { font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; resize: vertical; width: 100%; }
.place-edit textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.place-edit-a { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

/* Formule et limites : compteurs du compte */
.set-grid select { border: 1px solid var(--line); background: var(--panel-2); border-radius: 12px; padding: 10px 12px; font-weight: 400; color: var(--ink); width: 100%; min-width: 0; }
.set-grid select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.lim-rows { display: flex; flex-direction: column; }
.lim-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(80px, 1fr) minmax(150px, auto); align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.lim-row:first-child { border-top: 0; padding-top: 0; }
.lim-bar { height: 8px; border-radius: 99px; background: var(--ring-track); overflow: hidden; }
.lim-bar i { display: block; height: 100%; border-radius: inherit; background: var(--ok); transition: width .4s; }
.lim-row.presque .lim-bar i { background: var(--ameliorer); }
.lim-row.plein .lim-bar i { background: var(--urgent); }
.lim-val { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lim-val b { color: var(--ink); }
.lim-row.plein .lim-val { color: var(--urgent-ink); }
.lim-essai { padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); margin-bottom: 16px; font-size: .9rem; line-height: 1.5; }
.lim-essai.fini { background: color-mix(in srgb, var(--urgent) 12%, transparent); }
.lim-regles { margin: 16px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; line-height: 1.5; }
.lim-reste { margin: 10px 0 0; font-size: .88rem; color: var(--muted); }
.lim-reste b { color: var(--ink); }
.lim-reste.plein { color: var(--urgent-ink); }
@media (max-width: 640px) { .lim-row { grid-template-columns: 1fr auto; gap: 8px 12px; } .lim-bar { grid-column: 1 / -1; grid-row: 2; } }

/* Crédit des IA */
.cr-rows { display: flex; flex-direction: column; }
.cr-row { display: flex; flex-direction: column; gap: 8px; padding: 14px 0; border-top: 1px solid var(--line); }
.cr-row:first-child { border-top: 0; padding-top: 0; }
.cr-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cr-reste { margin-left: auto; font-variant-numeric: tabular-nums; }
.cr-row p { margin: 0; }
.cr-etat.bas { background: color-mix(in srgb, var(--ameliorer) 16%, transparent); border-color: transparent; color: var(--ameliorer-ink); }
.cr-etat.vide { background: color-mix(in srgb, var(--urgent) 14%, transparent); border-color: transparent; color: var(--urgent-ink); }
.cr-row.bas .lim-bar i { background: var(--ameliorer); }
.cr-row.vide .lim-bar i { background: var(--urgent); }
.cr-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cr-form input { border: 1px solid var(--line); background: var(--panel-2); border-radius: 12px; padding: 8px 12px; color: var(--ink); width: 190px; max-width: 100%; }
.cr-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.cr-form .link-btn { margin-left: auto; }

/* E-mails automatiques */
.em-rows { display: flex; flex-direction: column; }
.em-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.em-row:first-child { border-top: 0; padding-top: 0; }
.em-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.em-a { display: flex; gap: 14px; white-space: nowrap; }
#em-etat.on { color: var(--ok-ink); }
@media (max-width: 760px) { .em-row { grid-template-columns: 1fr; gap: 6px; } .em-row .set-badge { justify-self: start; } }

/* Tarifs : deux publics, essai sans carte, encart Sorvo */
.public-switch { display: inline-flex; gap: 4px; padding: 4px; border-radius: 99px; background: var(--panel); border: 1px solid var(--line); margin: 6px 0 22px; max-width: 100%; }
.public-switch button { border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 600; font-size: .95rem; padding: 10px 18px; border-radius: 99px; cursor: pointer; white-space: nowrap; }
.public-switch button span { font-weight: 400; font-size: .82rem; opacity: .8; margin-left: 4px; }
.public-switch button.active { background: var(--btn); color: var(--btn-ink); }
.pricing-lead { display: flex; flex-direction: column; gap: 10px; }
.essai-note { margin: 0; display: inline-block; align-self: flex-start; padding: 7px 14px; border-radius: 14px; background: var(--accent-soft); color: var(--ok-ink); font-size: .9rem; line-height: 1.45; }
.sorvo-reco { --s-navy: #0D2230; --s-sand: #FAFBF8; --s-red: #D93A26; --s-coral: #FF6A4D; grid-column: 1 / -1; position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 22px 40px; padding: 34px 36px; border-radius: 24px; background: var(--s-navy); color: var(--s-sand); }
.sorvo-ondes { position: absolute; right: -40px; top: -40px; width: 340px; height: 340px; fill: none; stroke: var(--s-coral); stroke-width: 1.2; opacity: .35; pointer-events: none; }
.sorvo-txt { position: relative; max-width: 640px; }
.sorvo-eyebrow { margin: 0 0 10px; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--s-coral); }
.sorvo-logo { display: inline-flex; align-items: center; font-family: 'Bricolage Grotesque', Inter, sans-serif; font-weight: 800; font-size: 2.2rem; letter-spacing: -0.04em; line-height: 1; color: var(--s-sand); }
.sorvo-logo svg { width: .95em; height: .9em; margin-left: .02em; margin-top: .06em; }
.sorvo-reco h3 { margin: 16px 0 10px; font-family: 'Bricolage Grotesque', Inter, sans-serif; font-size: clamp(1.35rem, 2.6vw, 1.75rem); line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; }
.sorvo-reco h3 em { font-style: normal; color: var(--s-coral); }
.sorvo-reco p { margin: 0; color: rgba(250, 251, 248, .82); line-height: 1.6; }
.sorvo-reco ul { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sorvo-reco li { font-size: .85rem; padding: 6px 12px; border-radius: 99px; background: rgba(250, 251, 248, .08); border: 1px solid rgba(250, 251, 248, .14); }
.sorvo-actions { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 12px; text-align: center; }
.sorvo-cta { display: inline-block; padding: 15px 24px; border-radius: 99px; background: var(--s-red); color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; box-shadow: 0 10px 28px -12px rgba(217, 58, 38, .9); transition: transform .2s, background .2s; }
.sorvo-cta:hover { background: #B32A19; transform: translateY(-2px); }
.sorvo-lien { color: var(--s-sand); font-size: .92rem; text-decoration: none; opacity: .85; }
.sorvo-lien:hover { opacity: 1; text-decoration: underline; }
@media (max-width: 860px) { .sorvo-reco { grid-template-columns: 1fr; padding: 28px 22px; } .sorvo-actions { align-items: flex-start; text-align: left; } .sorvo-cta { white-space: normal; } }
@media (max-width: 520px) { .public-switch { display: flex; } .public-switch button { flex: 1; padding: 10px 8px; white-space: normal; line-height: 1.2; } .public-switch button span { display: block; margin: 2px 0 0; } }

/* ---------- Page de connexion (Balise en ligne) ---------- */
.cx-page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.cx { flex: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 0; max-width: 1080px; width: 100%; margin: 0 auto; padding: 48px 24px 24px; align-items: stretch; }
.cx-pitch { position: relative; overflow: hidden; background: var(--ink); color: var(--bg); border-radius: 28px 0 0 28px; padding: 44px 44px 40px; display: flex; flex-direction: column; gap: 22px; }
.cx-pitch::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 360px; height: 360px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: 0 0 0 40px color-mix(in srgb, var(--accent) 6%, transparent), 0 0 0 90px color-mix(in srgb, var(--accent) 4%, transparent); pointer-events: none; }
.cx-marque { padding: 0; color: var(--bg); }
.cx-marque .mark { background: var(--bg); }
.cx-pitch h1 { font-family: 'Bricolage Grotesque', Inter, sans-serif; font-weight: 800; font-size: clamp(1.7rem, 3.2vw, 2.35rem); line-height: 1.12; letter-spacing: -0.03em; max-width: 18ch; }
.cx-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-width: 42ch; }
.cx-points li { position: relative; padding-left: 28px; color: color-mix(in srgb, var(--bg) 82%, transparent); line-height: 1.5; }
.cx-points li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.cx-essai { margin: auto 0 0; display: inline-flex; width: fit-content; padding: 8px 14px; border-radius: 99px; border: 1px solid color-mix(in srgb, var(--bg) 22%, transparent); font-size: .88rem; font-weight: 600; }
.cx-carte { background: var(--panel); border: 1px solid var(--line); border-left: 0; border-radius: 0 28px 28px 0; padding: 44px 40px 36px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.cx-etape { display: flex; flex-direction: column; gap: 16px; }
.cx-etape h2 { font-size: 1.6rem; font-weight: 700; }
.cx-etape > p { margin: 0; }
.cx-etape input[type=email], .cx-etape input[type=text] { font-size: 1rem; padding: 13px 16px; color: var(--ink); }
.cx-code { font-size: 1.5rem !important; letter-spacing: .18em; font-variant-numeric: tabular-nums; text-align: center; }
.cx-btn { justify-content: center; padding: 13px 20px; font-size: 1rem; }
.cx-btn:disabled { opacity: .55; cursor: progress; }
.cx-liens { margin: 0; font-size: .9rem; color: var(--muted); text-align: center; }
.cx-liens .link-btn:disabled { color: var(--muted); text-decoration: none; cursor: default; }
.cx-choix { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }
.cx-choix legend { font-size: .85rem; font-weight: 500; color: var(--muted); margin-bottom: 6px; padding: 0; }
.cx-option { flex-direction: row; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; cursor: pointer; color: var(--ink); font-size: .95rem; }
.cx-option span { display: flex; flex-direction: column; gap: 2px; }
.cx-option b { font-weight: 600; }
.cx-option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.cx-option input { margin-top: 3px; accent-color: var(--accent-strong); }
.cx-cgv { flex-direction: row; align-items: flex-start; gap: 10px; color: var(--ink); font-weight: 400; font-size: .9rem; line-height: 1.45; }
.cx-cgv input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent-strong); flex: none; }
.cx-cgv a { color: var(--accent-strong); }
.cx-erreur { margin: 0; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--urgent) 10%, var(--panel)); color: var(--urgent-ink); font-size: .92rem; }
.cx-sorvo { --s-navy: #0D2230; --s-sand: #FAFBF8; --s-red: #D93A26; --s-coral: #FF6A4D; margin-top: 6px; padding: 22px 22px 20px; border-radius: 20px; background: var(--s-navy); color: var(--s-sand); display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.cx-sorvo .sorvo-eyebrow { margin: 0; }
.cx-sorvo .sorvo-logo { font-size: 1.7rem; }
.cx-sorvo-t { margin: 6px 0 0; font-family: 'Bricolage Grotesque', Inter, sans-serif; font-size: 1.2rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; }
.cx-sorvo-t em { font-style: normal; color: var(--s-coral); }
.cx-sorvo-p { margin: 0; font-size: .9rem; line-height: 1.55; color: rgba(250, 251, 248, .8); }
.cx-sorvo .sorvo-cta { margin-top: 8px; padding: 12px 20px; font-size: .95rem; white-space: normal; text-align: center; }
.cx-sorvo[hidden] { display: none; }
.cx-spam { margin: 0; padding: 11px 14px; border-radius: 14px; background: color-mix(in srgb, var(--ameliorer, #e8960c) 12%, var(--panel)); color: var(--ink); font-size: .88rem; line-height: 1.5; }
.cx-question-lien { margin: 2px 0 0; font-size: .9rem; line-height: 1.5; color: var(--muted); text-align: center; }
.cx-question-lien .link-btn { font-size: inherit; }
.cx-etape input[type=tel], .cx-etape textarea { font-size: 1rem; padding: 13px 16px; color: var(--ink); }
.cx-etape textarea { resize: vertical; min-height: 96px; font-family: inherit; line-height: 1.5; }
.cx-choix-ligne { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cx-choix-ligne legend { grid-column: 1 / -1; }
.cx-choix-ligne .cx-option { align-items: center; gap: 8px; padding: 11px 12px; border-radius: 14px; font-size: .92rem; }
.cx-choix-ligne .cx-option input { margin-top: 0; }
.cq-piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; margin: 0; }
.cx-note { margin: -4px 0 0 !important; text-align: center; }
.cx-note a { color: var(--muted); }
.cx-merci { align-items: center; text-align: center; padding: 18px 0 4px; }
.cx-merci-ico { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; font-weight: 700; color: var(--accent-strong); background: var(--accent-soft); }
/* Page de connexion : une analyse en exemple qui tourne en boucle (note qui monte, Google, Maps, IA). */
@property --n { syntax: '<integer>'; inherits: true; initial-value: 0; }
.cxa { position: relative; z-index: 1; border-radius: 20px; padding: 18px 18px 14px; background: color-mix(in srgb, var(--bg) 7%, transparent); border: 1px solid color-mix(in srgb, var(--bg) 14%, transparent); box-shadow: 0 18px 50px -24px rgba(0,0,0,.5); max-width: 440px; }
.cxa-pied { margin: 12px 0 0; font-size: .78rem; color: color-mix(in srgb, var(--bg) 58%, transparent); }
.cx-pitch.avec-anim .cx-points { display: none; }
/* ---- A : analyse en direct ---- */
.cxa-tete { display: flex; align-items: center; gap: 8px; font-size: .86rem; color: color-mix(in srgb, var(--bg) 80%, transparent); }
.cxa-pt { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: cxa-pouls 1.2s ease-in-out infinite; }
.cxa-badge { margin-left: auto; font-size: .72rem; padding: 3px 9px; border-radius: 99px; background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent); }
.cxa-badge { display: grid; }
.cxa-badge span { grid-area: 1 / 1; text-align: center; }
.cxa-badge .encours { animation: cxa-encours 7s infinite; }
.cxa-badge .fini { opacity: 0; animation: cxa-fini 7s infinite; }
@keyframes cxa-encours { 0%, 59% { opacity: 1; } 60%, 97% { opacity: 0; } 98%, 100% { opacity: 1; } }
@keyframes cxa-fini { 0%, 60% { opacity: 0; } 62%, 96% { opacity: 1; } 97%, 100% { opacity: 0; } }
/* Mode nuit : le panneau de gauche est clair, le vert du badge est foncé pour rester lisible. */
[data-mode="dark"] .cxa-badge { color: #0b7a58; background: color-mix(in srgb, #1fbf8f 22%, transparent); }
.cxa-corps { display: grid; grid-template-columns: 112px 1fr; gap: 18px; align-items: center; margin-top: 14px; }
.cxa-anneau { position: relative; width: 112px; height: 112px; }
.cxa-anneau svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.cxa-anneau .fond { fill: none; stroke: color-mix(in srgb, var(--bg) 12%, transparent); stroke-width: 10; }
.cxa-anneau .val { fill: none; stroke: var(--accent); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 314; stroke-dashoffset: 314; animation: cxa-anneau 7s cubic-bezier(.3,.7,.3,1) infinite; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 60%, transparent)); }
@keyframes cxa-anneau { 0%, 6% { stroke-dashoffset: 314; } 60%, 92% { stroke-dashoffset: 60; } 100% { stroke-dashoffset: 314; } }
.cxa-note { position: absolute; inset: 0; display: grid; place-items: center; font-family: 'Bricolage Grotesque', Inter, sans-serif; font-size: 2rem; font-weight: 800; color: var(--bg); animation: cxa-compte 7s cubic-bezier(.3,.7,.3,1) infinite; counter-reset: n var(--n); }
.cxa-note::before { content: counter(n); }
.cxa-note small { position: absolute; bottom: 30px; font-size: .62rem; font-weight: 500; color: color-mix(in srgb, var(--bg) 55%, transparent); font-family: Inter, sans-serif; }
@keyframes cxa-compte { 0%, 6% { --n: 0; } 60%, 92% { --n: 81; } 100% { --n: 0; } }
.cxa-barres { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.cxa-barres li { display: grid; gap: 5px; font-size: .8rem; color: color-mix(in srgb, var(--bg) 78%, transparent); }
.cxa-barres i { display: block; height: 7px; border-radius: 99px; background: color-mix(in srgb, var(--bg) 12%, transparent); overflow: hidden; }
.cxa-barres em { display: block; height: 100%; width: calc(var(--v) * 100%); border-radius: inherit; background: var(--accent); transform-origin: left; animation: cxa-barre 7s cubic-bezier(.3,.7,.3,1) infinite; animation-delay: var(--d); }
@keyframes cxa-barre { 0%, 8% { transform: scaleX(0); } 55%, 90% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes cxa-pouls { 50% { opacity: .35; } }
@media (max-width: 860px) {
  .cxa { padding: 14px 14px 10px; border-radius: 16px; max-width: none; }
  .cxa-corps { grid-template-columns: 92px 1fr; gap: 14px; }
  .cxa-anneau { width: 92px; height: 92px; } .cxa-note { font-size: 1.6rem; } .cxa-note small { bottom: 22px; }
}
@media (prefers-reduced-motion: reduce) { .cxa *, .cxa *::before, .cxa *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; animation-fill-mode: both !important; } }
.cx-pied { text-align: center; padding: 18px 16px 28px; font-size: .85rem; color: var(--muted); }
.cx-pied a { color: var(--muted); }
@media (max-width: 860px) {
  .cx { grid-template-columns: 1fr; padding: 16px 16px 8px; }
  .cx-pitch { border-radius: 24px 24px 0 0; padding: 28px 22px 26px; gap: 14px; }
  .cx-pitch h1 { font-size: 1.5rem; }
  .cx-points { display: none; }
  .cx-essai { margin-top: 2px; }
  .cx-carte { border-left: 1px solid var(--line); border-top: 0; border-radius: 0 0 24px 24px; padding: 26px 20px 24px; }
  /* Sur téléphone : la case colorée suffit à montrer le choix (le rond est caché, mais reste au clavier). */
  .cx-choix-ligne .cx-option, .contact-pref .cx-option { position: relative; justify-content: center; padding: 11px 6px; font-size: .88rem; }
  .cx-choix-ligne .cx-option input, .contact-pref .cx-option input { position: absolute; opacity: 0; pointer-events: none; }
  .cx-choix-ligne .cx-option:has(input:focus-visible), .contact-pref .cx-option:has(input:focus-visible) { outline: 2px solid var(--accent-strong); outline-offset: 2px; }
}
/* Mention de TVA sous les formules */
.plans-tva { margin: 10px 0 0; text-align: center; }
/* ---------- Paiement en ligne : commande, Mon abonnement ---------- */
.commande-block { max-width: 1180px; animation: rise .35s ease both; }
.cmd-grille { display: grid; gap: 14px; margin: 6px 0 16px; }
.cmd-ligne { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.cmd-l { display: flex; flex-direction: column; gap: 2px; font-weight: 600; }
.cmd-l small { font-weight: 400; }
.cmd-ligne .save { font-size: .74rem; color: var(--ok-ink, var(--ok)); font-weight: 600; margin-left: 4px; }
.cmd-sites { display: inline-flex; align-items: center; gap: 10px; }
.cmd-sites output { min-width: 2ch; text-align: center; font-size: 1.15rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.cmd-sites .btn { width: 36px; height: 36px; padding: 0; justify-content: center; font-size: 1.1rem; }
.cmd-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: 12px; background: var(--panel-2); margin-bottom: 10px; }
.cmd-total b { font-size: 1.35rem; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.cmd-regles { margin: 0 0 14px; line-height: 1.5; }
.abo-lignes p { margin: 0 0 8px; line-height: 1.5; }
.abo-alerte { padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--ameliorer) 14%, transparent); }
#abo-msg:empty { display: none; }
@media (max-width: 560px) { .cmd-ligne { align-items: flex-start; flex-direction: column; } }
