/* Velora — app shell : barre latérale (desktop) / onglets en bas (mobile), 4 vues, thème sombre par défaut. */
:root {
  --bg: #faf7f9;
  --bg-glow: rgba(121, 121, 120, .07);
  --surface: #ffffff;
  --surface-2: #f2f2f1;
  --fg: #151514;
  --muted: #6f6577;
  --line: #ebe2ec;
  --accent: #797978;
  --accent-2: #727271;
  --accent-ink: #ffffff;
  --accent-soft: rgba(121, 121, 120, .08);
  --gold: #b07a1f;
  --grad: linear-gradient(135deg, var(--accent) 0%, #8a8a89 55%, var(--accent-2) 100%);
  --danger: #c92a2a;
  --ok: #2b8a3e;
  --warn: #b35c00;
  --shadow: 0 1px 2px rgba(23, 18, 26, .04), 0 8px 24px rgba(23, 18, 26, .06);
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "DM Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 16px;
  --side: 248px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0710; --bg-glow: rgba(140, 140, 139, .10); --surface: #121211; --surface-2: #191918;
    --fg: #f8f3f7; --muted: #a49aac; --line: #2b2233; --gold: #f2c27b;
    --accent: #8c8c8b; --accent-2: #888887; --accent-ink: #ffffff; --accent-soft: rgba(140, 140, 139, .12);
    --danger: #ff8787; --ok: #69db7c; --warn: #ffa94d;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0710; --bg-glow: rgba(140, 140, 139, .10); --surface: #121211; --surface-2: #191918;
  --fg: #f8f3f7; --muted: #a49aac; --line: #2b2233; --gold: #f2c27b;
  --accent: #8c8c8b; --accent-2: #888887; --accent-ink: #ffffff; --accent-soft: rgba(140, 140, 139, .12);
  --danger: #ff8787; --ok: #69db7c; --warn: #ffa94d;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: radial-gradient(1200px 600px at 85% -10%, var(--bg-glow), transparent 60%), var(--bg);
  color: var(--fg); font-family: var(--font-body); font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
input, select, textarea, button { font: inherit; color: inherit; }
a { color: var(--accent); }
.wrap { width: 100%; max-width: 48rem; margin: 0 auto; padding-inline: 16px; }
.wrap.wide { max-width: 72rem; }
.muted { color: var(--muted); font-size: 13px; }
.small { font-size: 12px; margin: 0; }

/* ---------- marque ---------- */
.brand { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.logo {
  width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center;
  background: var(--grad); color: var(--on-accent, #fff); font-size: 17px; box-shadow: 0 6px 18px var(--accent-soft);
}
.brand.lg { font-size: 26px; } .brand.lg .logo { width: 44px; height: 44px; font-size: 22px; border-radius: 13px; }

/* ---------- shell ---------- */
.app { height: 100%; display: grid; grid-template-columns: var(--side) minmax(0, 1fr); }
.side {
  border-right: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 70%, transparent);
  backdrop-filter: blur(12px); padding: 20px 14px; display: flex; flex-direction: column; gap: 26px; min-height: 0;
}
.side .brand { padding: 0 8px; }
/* Fenêtre peu haute (appli PC, portable) : le menu défile tout seul au lieu de déborder sur la page. */
.side { overflow-y: auto; overscroll-behavior: contain; }

/* ---------- barres de défilement : fines, arrondies, aux couleurs du thème, sans flèches ---------- */
/* Chrome, Edge, Safari et l'appli PC (Electron). Pas de scrollbar-width / scrollbar-color ici : dans Chrome, ils désactiveraient ce style. */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
::-webkit-scrollbar-thumb {
  background-color: color-mix(in srgb, var(--fg) 16%, transparent);
  border: 3px solid transparent; background-clip: padding-box; border-radius: 999px; min-height: 40px;
}
::-webkit-scrollbar-thumb:hover { background-color: color-mix(in srgb, var(--accent) 55%, transparent); }
::-webkit-scrollbar-thumb:active { background-color: var(--accent); }
.side::-webkit-scrollbar { width: 8px; }
/* Firefox (ne connaît pas ::-webkit-scrollbar) : barre fine aux couleurs du thème. */
@supports not selector(::-webkit-scrollbar) {
  * { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--fg) 22%, transparent) transparent; }
}
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav button {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer;
  border: 0; background: transparent; border-radius: 11px; padding: 10px 12px; font-weight: 500; color: var(--muted);
  transition: background .15s, color .15s;
}
.nav button:hover { background: var(--surface-2); color: var(--fg); }
.nav button[aria-current="page"] { background: var(--accent-soft); color: var(--fg); font-weight: 600; }
.nav button[aria-current="page"] svg { stroke: var(--accent); }
.nav svg, .bottomnav svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.count { margin-left: auto; font-size: 11.5px; font-weight: 600; background: var(--grad); color: var(--on-accent, #fff); border-radius: 999px; padding: 1px 8px; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding: 0 4px; }
.engine { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); min-width: 0; }
.engine span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 20%, transparent); flex: none; }
.side-foot .btn-ghost { align-self: flex-start; }

.main { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.view { flex: 1; min-height: 0; display: flex; flex-direction: column; }
main { flex: 1; overflow-y: auto; min-height: 0; }
.viewbar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: space-between;
  padding: 18px 28px; border-bottom: 1px solid var(--line);
}
.viewbar h1 { margin: 0; font-family: var(--font-display); font-size: 22px; letter-spacing: -0.02em; }
.viewbar p { margin: 2px 0 0; }
.viewbar-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bottomnav { display: none; }

/* ---------- boutons ---------- */
.btn-main {
  font-weight: 600; font-size: 14px; border: 0; cursor: pointer; flex: none;
  background: var(--grad); color: var(--on-accent, #fff); border-radius: 12px; padding: 10px 18px;
  box-shadow: 0 6px 18px var(--accent-soft); transition: transform .12s, filter .12s;
}
.btn-main:hover:not(:disabled) { filter: brightness(1.08); }
.btn-main:active:not(:disabled) { transform: translateY(1px); }
.btn-main:disabled { opacity: .45; cursor: default; box-shadow: none; }
.btn-main.sm { padding: 7px 14px; font-size: 13px; }
.btn-main.wide { width: 100%; padding: 12px; }
.btn-ghost {
  font-size: 13px; font-weight: 600; background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; padding: 7px 14px; cursor: pointer; flex: none; transition: border-color .15s, color .15s;
}
.btn-ghost.sm { padding: 5px 11px; font-size: 12.5px; }
.btn-ghost:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.btn-ghost:disabled { opacity: .45; cursor: default; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; padding: 3px; background: var(--surface); }
.seg button { border: 0; background: transparent; cursor: pointer; border-radius: 7px; padding: 4px 12px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.seg button[aria-checked="true"] { background: var(--grad); color: var(--on-accent, #fff); }
.pill { font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.pill.on { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }

/* ---------- assistant ---------- */
#thread { display: flex; flex-direction: column; gap: 22px; padding-block: 28px 32px; }
.intro { display: flex; flex-direction: column; gap: 18px; padding-block: 4vh 8px; }
.badge {
  align-self: flex-start; font-size: 12px; font-weight: 600; color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); background: var(--accent-soft);
  border-radius: 999px; padding: 4px 12px;
}
.intro h2 {
  margin: 0; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(30px, 5.5vw, 46px); line-height: 1.05; letter-spacing: -0.035em; text-wrap: balance;
}
.intro h2 em, .lock-pitch h2 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.intro p { margin: 0; color: var(--muted); max-width: 36rem; font-size: 15.5px; }
.quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 10px; }
.quick button {
  text-align: left; cursor: pointer; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--grad); color: var(--on-accent, #fff); padding: 16px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow);
}
.quick button:nth-child(2) { background: var(--surface); color: var(--fg); }
.quick strong { font-family: var(--font-display); font-size: 16px; }
.quick span { font-size: 13px; opacity: .85; }
.chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 10px; }
.chip {
  text-align: left; cursor: pointer; background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; transition: border-color .15s, transform .15s;
}
.chip small { color: var(--accent); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.chip:hover { border-color: var(--accent); transform: translateY(-1px); }

.msg { display: flex; gap: 12px; min-width: 0; }
.msg.user { justify-content: flex-end; }
.msg.ai::before {
  content: "V"; width: 30px; height: 30px; border-radius: 9px; flex: none; display: grid; place-items: center;
  background: var(--grad); color: var(--on-accent, #fff); font-family: var(--font-display); font-weight: 800; font-size: 14px;
}
.bubble { max-width: 85%; min-width: 0; overflow-wrap: anywhere; }
.msg.ai .bubble { flex: 1; max-width: none; padding-top: 3px; }
.msg.user .bubble {
  background: var(--grad); color: var(--on-accent, #fff); border-radius: 16px 16px 4px 16px;
  padding: 10px 15px; white-space: pre-wrap; box-shadow: 0 6px 18px var(--accent-soft);
}
.body > :first-child { margin-top: 0; }
.body > :last-child { margin-bottom: 0; }
.bubble p, .bubble ul, .bubble ol { margin: 0 0 10px; }
.bubble ul, .bubble ol { padding-left: 20px; }
.bubble li { margin: 3px 0; }
.bubble h3 { font-family: var(--font-display); font-size: 16.5px; margin: 18px 0 8px; letter-spacing: -0.01em; }
.bubble strong { font-weight: 600; }
.bubble code { font-size: 0.92em; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }
.bubble hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.bubble .table { overflow-x: auto; margin: 0 0 12px; border: 1px solid var(--line); border-radius: 12px; }
.bubble table { border-collapse: collapse; font-size: 13.5px; min-width: 32rem; width: 100%; }
.bubble th, .bubble td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.bubble th { background: var(--surface-2); font-weight: 600; }
.bubble .box {
  position: relative; border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
  padding: 14px 16px 14px 20px; margin: 0 0 12px; box-shadow: var(--shadow); overflow: hidden;
}
.bubble .box::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--grad); }
.bubble .box > :first-child { margin-top: 0; }
.bubble .box > :last-child { margin-bottom: 0; }
.bubble .box h3 { margin-top: 0; }
.dl { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.dl button {
  font-size: 13px; font-weight: 600; cursor: pointer; padding: 7px 13px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); transition: border-color .15s, color .15s;
}
.dl button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.dl button:first-child { background: var(--grad); color: var(--on-accent, #fff); border-color: transparent; }
.status { color: var(--muted); font-size: 13px; display: inline-flex; gap: 8px; align-items: center; }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: blink 1.2s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25 } 40% { opacity: 1 } }
.sources { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.sources ol { margin: 4px 0 0; padding-left: 18px; }
.sources a { color: var(--muted); }
.note { font-size: 12.5px; color: var(--danger); margin-top: 6px; }

.composer-zone { padding-block: 8px calc(14px + env(safe-area-inset-bottom, 0px)); }
.composer-zone .wrap { display: flex; flex-direction: column; gap: 6px; }
.composer {
  display: flex; align-items: flex-end; gap: 8px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 7px 7px 7px 16px; box-shadow: var(--shadow); transition: border-color .15s;
}
.composer:focus-within { border-color: var(--accent); }
.composer textarea {
  flex: 1; min-width: 0; border: 0; outline: 0; resize: none; background: transparent;
  line-height: 1.45; padding-block: 9px; max-height: 40vh;
}
.composer ::placeholder { color: var(--muted); }
.hint { color: var(--muted); font-size: 11.5px; text-align: center; }

/* ---------- cartes & formulaires ---------- */
.scroll { padding-block: 24px 40px; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.cols { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; box-shadow: var(--shadow);
}
.card-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.card-head h2 { margin: 0; font-family: var(--font-display); font-size: 18px; letter-spacing: -0.01em; flex: 1; }
.presets { display: flex; gap: 6px; align-items: center; }
select, .field input, .add input, #preset-name {
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; min-width: 0;
}
select:focus, .field input:focus, .add input:focus, #preset-name:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.span2 { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; border: 0; margin: 0; padding: 0; min-width: 0; }
.field small { color: var(--muted); font-weight: 400; margin-top: -4px; }
.field input, .field select, .add input, #preset-name { font-weight: 400; }
.field legend { padding: 0; margin-bottom: 6px; }
.checks { display: flex; gap: 8px; flex-wrap: wrap; font-weight: 400; font-size: 13.5px; }
.checks label {
  display: inline-flex; gap: 7px; align-items: center; cursor: pointer;
  border: 1px solid var(--line); border-radius: 10px; padding: 6px 11px; background: var(--bg);
}
.checks label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.check { display: flex; gap: 8px; align-items: center; font-size: 13.5px; flex-wrap: wrap; }
input[type="checkbox"] { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; }
.chips-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: -6px; }
.tag { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 3px 11px; font-size: 12.5px; cursor: pointer; color: var(--muted); }
.tag:hover { border-color: var(--accent); color: var(--accent); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
#preset-name { flex: 1; min-width: 8rem; }
.rule { margin: 0; font-size: 12.5px; color: var(--muted); background: var(--surface-2); border-radius: 10px; padding: 10px 12px; }

/* ---------- bibliothèque de scripts ---------- */
#lib { display: flex; flex-direction: column; gap: 10px; }
.lib-item { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--bg); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.lib-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.lib-top strong { font-family: var(--font-display); font-size: 15px; overflow-wrap: anywhere; }
.lib-item .dl { margin-top: 0; }
.lib-item .dl button { padding: 5px 10px; font-size: 12.5px; }
.lib-preview { max-width: none; border-top: 1px solid var(--line); padding-top: 10px; max-height: 26rem; overflow: auto; }

/* ---------- mémoire & veille ---------- */
#mem-list, #veille-list { display: flex; flex-direction: column; gap: 8px; }
.mem { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--bg); }
.mem p { margin: 0; flex: 1; min-width: 0; font-size: 14px; overflow-wrap: anywhere; }
.mem small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.mem button { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 16px; line-height: 1; padding: 2px 4px; border-radius: 6px; }
.mem button:hover { color: var(--danger); background: var(--surface-2); }
.vpt { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--bg); display: flex; flex-direction: column; gap: 4px; }
.vpt p { margin: 0; font-size: 14px; }
.vpt-meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 11.5px; color: var(--muted); }
.vpt-meta b { color: var(--accent); font-weight: 600; }
.rel { border: 1px solid var(--line); border-radius: 999px; padding: 0 7px; }
.rel[data-r="officiel"] { color: var(--ok); border-color: currentColor; }
.rel[data-r="une source"] { color: var(--warn); border-color: currentColor; }
.memo-note { margin-top: 10px; font-size: 12.5px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 8px; }

/* ---------- prospection ---------- */
.cands { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 12px; }
.cand { border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 8px; min-width: 0; background: var(--bg); transition: border-color .15s; }
.cand:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.cand-top { display: flex; gap: 8px; align-items: baseline; justify-content: space-between; }
.cand-name { font-weight: 600; overflow-wrap: anywhere; }
.score { font-size: 12px; font-weight: 600; color: var(--accent); flex: none; letter-spacing: 1px; }
.meta { display: flex; gap: 6px; flex-wrap: wrap; }
.meta span { font-size: 11.5px; border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; color: var(--muted); background: var(--surface); }
.vline { font-size: 12.5px; border-radius: 8px; padding: 5px 9px; background: var(--surface); border: 1px solid var(--line); overflow-wrap: anywhere; }
.vline.good { color: var(--ok); border-color: currentColor; }
.vline.mid { color: var(--warn); border-color: currentColor; }
.vline.bad { color: var(--danger); border-color: currentColor; }
.proof { font-size: 12.5px; color: var(--muted); font-style: italic; margin: 0; overflow-wrap: anywhere; }
.angle { font-size: 13px; margin: 0; }
.cand-links { display: flex; gap: 12px; font-size: 12.5px; flex-wrap: wrap; }
.cand .btn-ghost { align-self: flex-start; }
details summary { cursor: pointer; font-size: 13.5px; font-weight: 600; }
.lgroup { margin-top: 10px; }
.lgroup h4 { margin: 0 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.lgroup a { display: block; font-size: 13.5px; padding: 3px 0; overflow-wrap: anywhere; }
.banner { font-size: 13.5px; border-radius: 10px; padding: 10px 12px; border: 1px dashed var(--line); }
.banner.err { color: var(--danger); border-color: currentColor; }

/* ---------- pipeline ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.kpi small { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.kpi strong { display: block; font-family: var(--font-display); font-size: 30px; letter-spacing: -0.03em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.kpi:last-child strong { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.add { display: flex; gap: 8px; flex-wrap: wrap; }
.add input { flex: 1; min-width: 7rem; }
#pipe { display: flex; flex-direction: column; gap: 10px; }
.row { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; background: var(--bg); }
.row-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.row-title { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.row-title a { color: var(--fg); font-weight: 600; overflow-wrap: anywhere; }
.row-side { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.row .checks { font-size: 12.5px; gap: 6px; }
.row .checks label { padding: 4px 9px; }
.row textarea { width: 100%; min-height: 2.4em; resize: vertical; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; font-size: 13px; }
.row input.followers { width: 8rem; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 5px 9px; font-size: 13px; font-variant-numeric: tabular-nums; }
.st { font-size: 12.5px; padding: 5px 9px; border-radius: 8px; }
.st[data-s="signee"] { color: var(--ok); border-color: currentColor; }
.st[data-s="refus"] { color: var(--danger); }
.warnline { font-size: 12px; color: var(--warn); }
.empty { color: var(--muted); font-size: 13.5px; padding: 8px 0; }

/* ---------- connexion ---------- */
.lock { min-height: 100%; display: grid; grid-template-columns: 1.1fr 1fr; }
.lock-pitch {
  padding: 48px; display: flex; flex-direction: column; justify-content: center; gap: 26px;
  background: radial-gradient(800px 500px at 0% 0%, var(--accent-soft), transparent 60%), var(--surface);
  border-right: 1px solid var(--line);
}
.lock-pitch h2 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(32px, 4.5vw, 54px); line-height: 1.04; letter-spacing: -0.035em; }
.pitch-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; color: var(--muted); }
.pitch-list span { color: var(--accent); margin-right: 6px; }
.lock-card { align-self: center; justify-self: center; width: 100%; max-width: 24rem; padding: 32px 20px; display: flex; flex-direction: column; gap: 16px; }
.lock-card h3 { margin: 0; font-family: var(--font-display); font-size: 26px; letter-spacing: -0.02em; }
.lock-card p { margin: 0; color: var(--muted); }

.auth-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.auth-seg[hidden] { display: none; }
.auth-seg button { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 13.5px; font-weight: 600; padding: 9px 10px; border-radius: 9px; cursor: pointer; transition: background .15s, color .15s; }
.auth-seg button:hover { color: var(--fg); }
.auth-seg button[aria-checked="true"] { background: var(--surface); color: var(--fg); box-shadow: var(--shadow); }
.auth-seg button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.auth-head { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.lock-card .field > span small { margin-left: 4px; }
.auth-fine { font-size: 12px; line-height: 1.5; text-align: center; margin-top: -6px !important; }
.auth-fine a { color: inherit; text-decoration: underline; }
.lock-card:not([data-mode="signup"]) .signup-only { display: none; }

/* ---------- compte (barre latérale) ---------- */
.me {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 8px 10px; transition: border-color .15s;
}
.me:hover, .me[aria-current="page"] { border-color: var(--accent); }
.avatar { width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--grad); color: var(--on-accent, #fff); font-weight: 700; font-size: 13px; }
.me-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.me-txt strong { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-txt small { font-size: 11.5px; color: var(--muted); }
.me svg { width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
/* fonction pas incluse : l'icône de l'offre qui la débloque, à ses couleurs (à la place d'un cadenas) */
.nav button.locked::after { content: ""; flex: none; margin-left: auto; width: 15px; height: 15px; background: color-mix(in srgb, var(--lk-c, var(--accent)) 80%, var(--fg));
  -webkit-mask: var(--lk-i) center / contain no-repeat; mask: var(--lk-i) center / contain no-repeat; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--lk-c, var(--accent)) 45%, transparent)); }
.nav button.locked { color: color-mix(in srgb, var(--fg) 62%, transparent); }
.nav button[data-lock-plan="starter"]::after { --lk-i: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222.2%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 2.5c3.3 2.2 5 5.7 5 9.7l-2 4.3H9l-2-4.3c0-4 1.7-7.5 5-9.7z%22/%3E%3Ccircle cx=%2212%22 cy=%2210%22 r=%222%22/%3E%3Cpath d=%22M9 16.5 6.5 19M15 16.5l2.5 2.5M12 18v3.5%22/%3E%3C/svg%3E"); }
.nav button[data-lock-plan="pro"]::after { --lk-i: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222.2%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M13 2.5 4.5 13.5H12l-1 8 8.5-11H12z%22/%3E%3C/svg%3E"); }
.nav button[data-lock-plan="agence"]::after { --lk-i: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222.2%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M3 7.5 7.5 12 12 5l4.5 7L21 7.5 19 18.5H5z%22/%3E%3Cpath d=%22M5.5 21.5h13%22/%3E%3C/svg%3E"); }
[data-lock-plan="starter"], .lock-tag[data-plan="starter"], [data-plan="starter"] > .db-lock-ico, #lk-card[data-plan="starter"] { --lk-c: #afafae; }
[data-lock-plan="pro"], .lock-tag[data-plan="pro"], [data-plan="pro"] > .db-lock-ico, #lk-card[data-plan="pro"] { --lk-c: var(--accent); }
[data-lock-plan="agence"], .lock-tag[data-plan="agence"], [data-plan="agence"] > .db-lock-ico, #lk-card[data-plan="agence"] { --lk-c: #e9b45f; }
#lk-card[data-plan="soon"] { --lk-c: var(--muted); }
.lock-tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 8px; border-radius: 999px; font: 700 13px var(--font-body); letter-spacing: .01em;
  color: color-mix(in srgb, var(--lk-c) 68%, var(--fg)); background: color-mix(in srgb, var(--lk-c) 13%, transparent); border: 1px solid color-mix(in srgb, var(--lk-c) 30%, transparent); }
.lock-tag .i { width: 14px; height: 14px; stroke: currentColor; }
.db-kpi.off b { font-size: inherit; line-height: 1; padding: 4px 0 2px; }
.db-lock .db-lock-ico { flex: none; }
.db-lock-ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; flex: none; color: color-mix(in srgb, var(--lk-c) 75%, var(--fg)); background: color-mix(in srgb, var(--lk-c) 13%, transparent); }
.db-lock-ico .i { width: 16px; height: 16px; stroke: currentColor; }
/* écran « à débloquer » */
#lk-card { --lk-c: var(--accent); width: min(100%, 40rem); margin: 6vh auto 0; padding: 30px 30px 24px; gap: 18px; position: relative; overflow: hidden;
  background: radial-gradient(520px 220px at 0% 0%, color-mix(in srgb, var(--lk-c) 14%, transparent), transparent 70%), var(--surface); }
.up-hero { display: flex; gap: 18px; align-items: center; }
.up-ico { position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; flex: none; background: var(--grad); box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 35%, transparent); }
.up-ico > .i { width: 30px; height: 30px; stroke: var(--on-accent, #fff); stroke-width: 1.8; }
.up-badge { position: absolute; right: -7px; bottom: -7px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface); border: 2px solid var(--surface); box-shadow: 0 0 0 1px color-mix(in srgb, var(--lk-c) 45%, transparent); }
.up-badge .i { width: 15px; height: 15px; stroke: color-mix(in srgb, var(--lk-c) 75%, var(--fg)); stroke-width: 2.2; }
.up-head { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.up-kicker { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: color-mix(in srgb, var(--lk-c) 68%, var(--fg)); }
#lk-card > * { align-self: stretch; }
#lk-card h2 { margin: 0; font-size: clamp(24px, 3.4vw, 32px); }
.up-lead { margin: 0; font-size: 15.5px; line-height: 1.55; color: color-mix(in srgb, var(--fg) 82%, transparent); }
.up-more { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.up-more:has(.up-feats:empty) { display: none; }
.up-sub { margin: 0; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.up-feats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 8px; }
.up-feats li { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 11px; font-size: 13.5px; font-weight: 600; background: color-mix(in srgb, var(--fg) 4%, transparent); border: 1px solid var(--line); }
.up-feats .i { width: 16px; height: 16px; flex: none; stroke: var(--accent); }
.up-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.up-cta .btn-main { display: inline-flex; align-items: center; gap: 8px; }
.up-cta .btn-main .i { width: 17px; height: 17px; }
.up-fine { margin: -6px 0 0; font-size: 12px; color: var(--muted); }
@media (max-width: 560px) { #lk-card { padding: 22px 18px 18px; } .up-hero { flex-direction: column; align-items: flex-start; } .up-cta > * { flex: 1 1 100%; } }
.usage-topup { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border-radius: 12px; border: 1px dashed var(--line); }
.usage-topup .btn-ghost { display: inline-flex; align-items: center; gap: 6px; }
.usage-topup .i { width: 15px; height: 15px; }
.bottomnav button.locked { opacity: .55; }

/* ---------- offres ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.plan.pop:not(.current) { border-color: color-mix(in srgb, var(--accent-2) 55%, var(--line)); }
.plan-tag { margin: 0; min-height: 2.9em; }
.quota { list-style: none; margin: 2px 0 4px; padding: 10px 0; display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; border-block: 1px dashed var(--line); }
.quota li { display: flex; justify-content: space-between; gap: 8px; }
.quota span { color: var(--muted); }
.quota b { font-weight: 600; text-align: right; white-space: nowrap; }

/* consommation */
.meter { display: block; height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.meter b { display: block; height: 100%; border-radius: inherit; background: var(--grad); transition: width .3s; }
.meter.warn b { background: var(--warn); }
.meter.full b { background: var(--danger); }
.usage { display: flex; flex-direction: column; gap: 10px; }
.usage:empty { display: none; }
.usage > p { margin: 0; }
.usage-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--bg); }
.usage-label { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.usage-label small { font-size: 12px; }
.usage-meters { display: flex; flex-direction: column; gap: 8px; }
.usage-meter { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); }
.usage-meter b { color: var(--fg); font-weight: 600; font-variant-numeric: tabular-nums; }
.urow-usage { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 3px; }
.urow-usage .u-full { color: var(--danger); font-weight: 600; }
@media (max-width: 760px) { .usage-row { grid-template-columns: 1fr; } }
.plan { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: var(--bg); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.plan.current { border-color: var(--accent); background: var(--accent-soft); }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan h3 { margin: 0; font-family: var(--font-display); font-size: 18px; }
.plan .price strong { font-family: var(--font-display); font-size: 26px; letter-spacing: -0.02em; }
.feat { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; font-size: 13px; }
.feat li { padding-left: 22px; position: relative; }
.feat li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.feat li.no { color: var(--muted); text-decoration: line-through; opacity: .7; }
.feat li.no::before { content: "–"; color: var(--muted); }
.upsell { margin-top: 6vh; align-items: flex-start; }
.upsell h2 { margin: 0; font-family: var(--font-display); font-size: clamp(22px, 3.5vw, 30px); letter-spacing: -0.02em; line-height: 1.15; }
.upsell p { margin: 0; }
.urow { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--bg); }
.urow + .urow { margin-top: 8px; }
.urow-main { display: flex; flex-direction: column; min-width: 0; }
.urow-main strong, .urow-main span { overflow-wrap: anywhere; }
.urow.is-off { background: var(--surface-2); }
.urow.is-off .urow-title strong { color: var(--muted); }
.urow-title { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.urow-main .muted.small { margin-top: 2px; }
.urow-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.urow-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.tag { font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 6px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.tag-off { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 30%, transparent); background: color-mix(in srgb, var(--danger) 8%, transparent); }
.tag-wait { color: var(--warn, #b7791f); border-color: color-mix(in srgb, var(--warn, #b7791f) 30%, transparent); background: color-mix(in srgb, var(--warn, #b7791f) 8%, transparent); }
.btn-ghost.btn-danger:hover:not(:disabled) { border-color: var(--danger); color: var(--danger); }
.admin-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 4px 0 12px; }
.admin-tools input[type=search] { flex: 1 1 14rem; min-width: 0; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font: inherit; font-size: 13.5px; }
.admin-tools input[type=search]:focus { outline: none; border-color: var(--accent); }
.danger-zone .btn-ghost:hover { border-color: var(--danger); color: var(--danger); }
.field input:disabled { opacity: .6; }

/* ---------- copilote ---------- */
.field textarea {
  font-weight: 400; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px;
  resize: vertical; min-height: 9rem; line-height: 1.45; min-width: 0;
}
.field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.copilot-out { max-width: none; }
.copilot-out .box { padding-right: 96px; }
.copy {
  position: absolute; top: 10px; right: 10px; font-size: 12px; font-weight: 600; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 4px 9px; transition: border-color .15s, color .15s;
}
.copy:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- accompagnement 1:1 ---------- */
.co-intro h2 { margin: 0 0 4px; font-family: var(--font-display); font-size: clamp(22px, 3.5vw, 30px); letter-spacing: -0.02em; line-height: 1.15; }
.co-intro p { margin: 0; }
.co-week { background: radial-gradient(600px 240px at 0% 0%, var(--accent-soft), transparent 70%), var(--surface); }
.co-week h2 { font-size: 22px; }
.co-focus { margin: 0; font-size: 16px; font-weight: 500; }
.pill.due { color: var(--warn); border-color: currentColor; font-weight: 600; }
.bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: var(--grad); border-radius: inherit; transition: width .3s; }
#co-tasks { display: flex; flex-direction: column; gap: 8px; }
.task { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--bg); }
.task input { margin-top: 3px; flex: none; cursor: pointer; }
.task-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; overflow-wrap: anywhere; }
.task-txt span { font-size: 14px; }
.task-txt small { font-size: 12px; color: var(--muted); }
.task-txt b { color: var(--accent); font-weight: 600; }
.task.done .task-txt span { text-decoration: line-through; color: var(--muted); }
.task button { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 15px; line-height: 1; padding: 2px 4px; border-radius: 6px; }
.task button:hover { color: var(--danger); background: var(--surface-2); }
#co-goals { display: flex; flex-direction: column; gap: 10px; }
.goal { display: flex; gap: 10px; align-items: flex-start; }
.goal .pill { flex: none; font-weight: 600; color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.goal div { display: flex; flex-direction: column; min-width: 0; }
.goal small { color: var(--muted); font-size: 12.5px; }
#co-diag { margin: 8px 0 0; font-size: 13.5px; }
#co-kpis .table { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
#co-kpis table { border-collapse: collapse; font-size: 13px; width: 100%; }
#co-kpis th, #co-kpis td { border-bottom: 1px solid var(--line); padding: 7px 9px; text-align: left; white-space: nowrap; font-variant-numeric: tabular-nums; }
#co-kpis th { background: var(--surface-2); font-weight: 600; }
#co-kpis td:first-child { white-space: normal; min-width: 9rem; }
.up { color: var(--ok); font-size: 10px; } .down { color: var(--danger); font-size: 10px; }
.co-feedback { max-width: none; }
.co-feedback .body > p:first-child { font-size: 15.5px; font-weight: 500; margin-top: 0; }
.co-feedback .body > h3 { font-size: 14.5px; margin: 0; padding: 14px 0 6px; border-top: 1px solid var(--line); }
.co-feedback .body > h3 + p, .co-feedback .body > h3 + ul { margin-top: 0; }
.co-feedback .body > .box { margin-top: 16px; }
.co-thread { display: flex; flex-direction: column; gap: 16px; max-height: 60vh; overflow-y: auto; padding: 4px 2px; }
.co-nudge p { margin: 0; font-size: 14.5px; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); }
.co-quick { margin-top: 0; }

/* en-tête de semaine + onglets */
.co-week { gap: 12px; }
.co-week-top { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.co-week-main { flex: 1; min-width: 14rem; display: flex; flex-direction: column; gap: 6px; }
.co-week-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.co-week-meta h2 { margin: 0; font-family: var(--font-display); letter-spacing: -0.01em; }
.co-tabs {
  display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none;
}
.co-tabs::-webkit-scrollbar { display: none; }
.co-tabs button {
  flex: 1 0 auto; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 13.5px; font-weight: 600;
  padding: 9px 14px; border-radius: 10px; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s;
}
.co-tabs button:hover { color: var(--fg); }
.co-tabs button[aria-selected="true"] { background: var(--surface); color: var(--fg); box-shadow: var(--shadow); }
.banner.warn { border-style: solid; border-color: color-mix(in srgb, var(--warn) 45%, transparent); background: color-mix(in srgb, var(--warn) 8%, transparent); }
.banner p { margin: 0 0 8px; } .banner p:last-child { margin-bottom: 0; }
.banner ul { margin: 6px 0 0; padding-left: 18px; }
.co-bilan { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--accent-2) 35%, transparent); background: color-mix(in srgb, var(--accent-2) 8%, transparent); font-size: 14px; }
.co-bilan p { margin: 0; }
#co-chat-card { gap: 12px; }
#co-chat-card .co-thread { max-height: min(62vh, 680px); }

/* composer : boutons ronds (capture, micro) */
.icon-btn {
  flex: none; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--line); background: var(--bg); font-size: 17px; line-height: 1; transition: border-color .15s;
}
.icon-btn:hover { border-color: var(--accent); }
.icon-btn.rec { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, transparent); animation: blink 1.2s infinite ease-in-out; }

/* bilan : capture + tableau par créatrice */
.co-shot { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.co-shot-btn { cursor: pointer; }
.field input.filled, .co-cr-row input.filled { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 10%, var(--bg)); }
.co-cr-box { gap: 8px; }
.co-cr-box legend small { display: block; margin-top: 2px; }
.co-cr-row { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.1fr) 30px; gap: 6px; align-items: center; }
.co-cr-row input { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 8px 9px; min-width: 0; font-weight: 400; }
.co-cr-row input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.co-cr-row button { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 14px; }
.co-cr-row button:hover { color: var(--danger); }
.co-cr-head { font-size: 11.5px; font-weight: 600; color: var(--muted); }
#co-cr-rows { display: flex; flex-direction: column; gap: 6px; }

/* créatrices, méthodes, définitions des chiffres */
#co-creators, #co-methods { display: flex; flex-direction: column; gap: 8px; }
.creator-item, .method-item { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--bg); }
.creator-item > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.creator-item small { font-size: 12.5px; color: var(--muted); }
.creator-item small strong { color: var(--fg); }
.creator-item button { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 14px; }
.creator-item button:hover { color: var(--danger); }
.method-item details { flex: 1; min-width: 0; }
.method-item summary { cursor: pointer; }
.method-text { white-space: pre-wrap; font-size: 13.5px; margin-top: 8px; color: var(--fg); overflow-wrap: anywhere; }
.method-item .actions { flex: none; }
.co-kpi-help { margin-top: 10px; font-size: 13px; }
.co-kpi-help summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.co-kpi-help ul { margin: 8px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; color: var(--muted); }
.co-kpi-help strong { color: var(--fg); }

@media (max-width: 760px) {
  .co-tabs button { flex: 1 0 auto; padding: 8px 7px; font-size: 12.5px; }
  .co-week-top .actions { width: 100%; }
  .co-week-top .actions button { flex: 1; }
  .co-cr-head { display: none; }
  .co-cr-row { grid-template-columns: repeat(3, minmax(0, 1fr)) 30px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; }
  .co-cr-row [data-f="name"] { grid-column: 1 / 4; }
  .co-cr-row [data-f="chatter"] { grid-column: 1 / 4; }
  .co-cr-row button { grid-column: 4; grid-row: 1; }
  .method-item { flex-direction: column; }
  #co-feedback-card .card-head > span { order: 3; flex-basis: 100%; }
}
.task .how { margin-top: 4px; font-size: 12.5px; }
.task .how summary { cursor: pointer; color: var(--accent); font-weight: 600; width: fit-content; }
.task .how p { margin: 4px 0 0; color: var(--fg); line-height: 1.5; }
#co-notes { display: flex; flex-direction: column; gap: 6px; max-height: 280px; overflow-y: auto; }
.note-item { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; padding: 6px 8px; border-radius: 10px; background: var(--surface-2); overflow-wrap: anywhere; }
.note-item span { flex: 1; min-width: 0; }
.note-item button { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 13px; line-height: 1; padding: 2px 4px; border-radius: 6px; }
.note-item button:hover { color: var(--danger); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .dots i { animation: none; opacity: .7; } * { transition: none !important; } }

/* ---------- tablette ---------- */
@media (max-width: 1000px) {
  .cols { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
}
/* ---------- mobile ---------- */
@media (max-width: 760px) {
  .app { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  #web-pill { display: none; }
  .side { display: none; }
  .bottomnav {
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(64px, 1fr); overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(12px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .bottomnav button {
    border: 0; background: transparent; cursor: pointer; color: var(--muted); font-size: 11px; font-weight: 600;
    display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 2px 8px;
  }
  .bottomnav button[aria-current="page"] { color: var(--accent); }
  .viewbar { padding: 12px 16px; padding-top: calc(12px + env(safe-area-inset-top, 0px)); }
  .viewbar h1 { font-size: 19px; }
  .viewbar p { display: none; }
  .composer-zone { padding-bottom: 10px; }
  .hint { display: none; }
  .bubble { max-width: 92%; }
  .msg.ai::before { display: none; }
  .grid { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; }
  .row-side { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
  .urow { flex-direction: column; align-items: flex-start; }
  .urow-side { align-items: flex-start; }
  .urow-acts { justify-content: flex-start; }
  .copilot-out .box { padding-right: 16px; padding-top: 44px; }
  .card { padding: 16px; }
  .lock { grid-template-columns: 1fr; }
  .lock-pitch { padding: 24px 16px 20px; gap: 14px; border-right: 0; border-bottom: 1px solid var(--line); }
  .lock-pitch h2 { font-size: 28px; }
  .pitch-list { display: none; }
  .lock-card { align-self: start; padding: 24px 16px 40px; }
}

/* icônes Velora */
.i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.btn-main .i, .btn-ghost .i { margin-right: 6px; }
.btn-main.sm .i, .btn-ghost.sm .i { width: 15px; height: 15px; }
.card-head h2 { display: flex; align-items: center; gap: 9px; }
.i.hi { width: 20px; height: 20px; stroke: url(#ig); stroke-width: 1.8; }
.co-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.co-tabs button .i { width: 17px; height: 17px; }
.co-tabs button[aria-selected="true"] .i { stroke: url(#ig); }
.co-focus { display: flex; gap: 8px; align-items: flex-start; }
.co-focus .i { width: 19px; height: 19px; margin-top: 2px; stroke: url(#ig); stroke-width: 2.1; }
.co-quick .tag { display: inline-flex; align-items: center; gap: 6px; }
.co-quick .tag .i { width: 14px; height: 14px; }
.icon-btn .i { width: 19px; height: 19px; }
.co-shot-btn { display: inline-flex; align-items: center; }
.badge .i { width: 14px; height: 14px; margin-right: 4px; vertical-align: -2px; }
.co-cr-box legend { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nudge { display: flex; gap: 12px; align-items: flex-start; }
.nudge p { margin: 0; }
.co-nudge .nudge { padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); }
.co-nudge .nudge p { padding: 0; background: none; border: 0; font-size: 14.5px; }
.mi { flex: none; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--grad); color: var(--on-accent, #fff); }
.mi .i { width: 16px; height: 16px; stroke-width: 2.1; }
.dl button { display: inline-flex; align-items: center; gap: 6px; }
.dl button .i { width: 15px; height: 15px; }

/* pièces jointes du coach */
.co-attach { display: flex; gap: 8px; flex-wrap: wrap; }
.att { position: relative; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); overflow: hidden; }
.att img { display: block; height: 76px; width: auto; max-width: 140px; object-fit: cover; }
.att-voice { display: flex; align-items: center; gap: 8px; padding: 6px 34px 6px 10px; }
.att-voice audio { height: 32px; max-width: 220px; }
.att-voice small { color: var(--muted); font-variant-numeric: tabular-nums; }
.att button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(0, 0, 0, .65); color: #fff; font-size: 11px; line-height: 1; }
.msg-media { display: flex; flex-direction: column; gap: 8px; margin-bottom: 6px; }
.msg-media:only-child { margin-bottom: 0; }
.msg-shot img { display: block; max-width: min(260px, 100%); max-height: 320px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .25); }
.msg-voice { display: flex; align-items: center; gap: 8px; }
.msg-voice audio { height: 34px; max-width: 240px; }
.msg-voice small { opacity: .85; font-variant-numeric: tabular-nums; }
.msg-transcript { font-style: italic; opacity: .92; font-size: 14px; }

/* icônes : toutes les pages */
.dl button, .copy, .lib-item .dl button { display: inline-flex; align-items: center; gap: 6px; }
.dl button .i, .copy .i { width: 15px; height: 15px; }
.rule .i { width: 16px; height: 16px; margin-right: 6px; vertical-align: -3px; color: var(--accent); }
.field .lbl { display: inline-flex; align-items: center; gap: 6px; }
.field .lbl .i { width: 15px; height: 15px; color: var(--accent); }
.pitch-ok { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: var(--grad); color: var(--on-accent, #fff); margin-right: 8px; flex: none; }
.pitch-ok .i { width: 13px; height: 13px; stroke-width: 2.6; }
.co-bilan p .i { width: 17px; height: 17px; margin-right: 6px; stroke: url(#ig); }
.upsell .badge .i { width: 14px; height: 14px; }
.nav button[aria-current="page"] svg, .bottomnav button[aria-current="page"] svg { stroke: url(#ig); }
.pitch-list .pitch-ok { color: var(--on-accent, #fff); -webkit-text-fill-color: var(--on-accent, #fff); -webkit-background-clip: border-box; background-clip: border-box; }
.pitch-list .pitch-ok .i { stroke: #fff; }

/* prospection qualitative */
.res-tools { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.seg-mini { display: inline-flex; gap: 4px; padding: 3px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--line); flex-wrap: wrap; }
.seg-mini button { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 600; padding: 6px 11px; border-radius: 8px; cursor: pointer; }
.seg-mini button[aria-pressed="true"] { background: var(--surface); color: var(--fg); box-shadow: var(--shadow); }
.seg-mini small { opacity: .7; margin-left: 3px; font-variant-numeric: tabular-nums; }
.cands { grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); }
.cand { gap: 9px; position: relative; }
.cand-top { align-items: center; }
.cand-name { color: var(--fg); text-decoration: none; font-size: 15px; }
a.cand-name:hover { color: var(--accent); }
.fit { flex: none; font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.fit small { font-size: 11px; font-weight: 600; color: var(--muted); margin-left: 1px; }
.fit.top { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fit.good { color: var(--ok); } .fit.mid { color: var(--warn); } .fit.low { color: var(--muted); }
.fit-label { font-size: 12px; font-weight: 600; margin-top: -4px; }
.fit-label.top { color: var(--accent); } .fit-label.good { color: var(--ok); } .fit-label.mid { color: var(--warn); } .fit-label.low, .fit-label.none { color: var(--muted); }
.cand.fit-top { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.cand .angle, .row .angle { display: flex; gap: 7px; align-items: flex-start; font-size: 13px; margin: 0; padding: 8px 10px; border-radius: 10px; background: var(--accent-soft); }
.angle .i { width: 15px; height: 15px; flex: none; margin-top: 2px; stroke: url(#ig); }
.sig { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; }
.sig li { display: flex; gap: 6px; align-items: flex-start; }
.sig .i { width: 14px; height: 14px; flex: none; margin-top: 2px; stroke-width: 2.3; }
.sig.pour .i { color: var(--ok); }
.sig.contre { color: var(--muted); } .sig.contre .i { color: var(--warn); }
.cand-bio summary, .why summary, .dm-obj summary, .rejected summary { cursor: pointer; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.cand-bio p { font-size: 13px; margin: 6px 0 0; overflow-wrap: anywhere; }
.cand-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.cand-actions .btn-ghost, .row-side .btn-ghost { display: inline-flex; align-items: center; gap: 5px; }
.cand-actions .i, .row-side .i { width: 14px; height: 14px; }
.rejected { margin-top: 4px; }
.rejected ul { margin: 8px 0 0; padding-left: 18px; font-size: 12.5px; color: var(--muted); display: flex; flex-direction: column; gap: 3px; }
.dm { display: flex; flex-direction: column; gap: 8px; border-top: 1px dashed var(--line); padding-top: 10px; }
.dm-part { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: var(--surface); }
.dm-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.dm-h .copy { padding: 3px 8px; font-size: 12px; }
.dm-part p { margin: 6px 0 0; font-size: 13.5px; line-height: 1.5; }
.dm-obj p { font-size: 13px; margin: 8px 0 0; }
.dm-tip { display: flex; gap: 6px; align-items: flex-start; font-size: 12.5px; color: var(--muted); margin: 0; }
.dm-tip .i { width: 14px; height: 14px; flex: none; margin-top: 2px; }
.dm [data-sent] { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; }
.follow { display: flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--muted); }
.follow .i { width: 14px; height: 14px; flex: none; }
.follow .due { color: var(--accent); } .follow .late { color: var(--danger); }
.row.is-due { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.banner.today { display: flex; gap: 8px; align-items: flex-start; border-style: solid; border-color: color-mix(in srgb, var(--accent) 40%, transparent); background: var(--accent-soft); margin-bottom: 10px; }
.banner.today .i { width: 17px; height: 17px; flex: none; margin-top: 1px; color: var(--accent); }
.kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1000px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* plateformes de prospection */
.women-only { display: flex; flex-direction: row; gap: 8px; align-items: flex-start; font-weight: 400; font-size: 13px; color: var(--muted); margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--accent-soft); align-self: end; }
.women-only strong { color: var(--fg); }
.women-only .i { width: 16px; height: 16px; flex: none; margin-top: 1px; stroke: url(#ig); }
.plat-checks { flex-wrap: wrap; }
#plat-hint.err { color: var(--danger); font-weight: 600; }
.meta .plat, .row-title .plat { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); font-weight: 600; }
.row-title .plat { font-size: 11.5px; border: 1px solid; border-radius: 999px; padding: 1px 8px; }

/* écran de connexion : liens et confirmation */
.linkish { align-self: center; border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 2px; }
.linkish:hover { color: var(--accent); }
.ok-banner { border-style: solid; border-color: color-mix(in srgb, var(--ok) 45%, transparent); color: var(--fg); background: color-mix(in srgb, var(--ok) 8%, transparent); }
.lock-card [hidden] { display: none !important; }

/* ---------- offre et abonnement ---------- */
.plan-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; padding: 1px 7px 1px 5px; border-radius: 999px;
  color: var(--accent); background: var(--accent-soft); vertical-align: 1px; }
.plan-chip .i { width: 12px; height: 12px; }
.plan-chip[data-plan="decouverte"] { color: var(--muted); background: var(--surface-2); }
.plans-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.plans-head h3 { margin: 0; font-size: 15px; font-family: var(--font-display); }
.plans-head small { color: var(--ok); font-weight: 600; margin-left: 2px; opacity: 1; }
.plan .wide { width: 100%; margin: 2px 0 4px; }
.plan-billed { margin: -6px 0 0; }
.plan.flash { animation: planFlash 1.6s ease-out 2; }
@keyframes planFlash { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 40% { box-shadow: 0 0 0 4px var(--accent-soft); } }
.plan-note { display: flex; gap: 6px; align-items: flex-start; flex-wrap: wrap; }
.plan-note .i { width: 14px; height: 14px; flex: none; margin-top: 1px; }
.sub-box { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 14px 16px; border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); background: var(--accent-soft); }
.sub-box.bad { border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); background: color-mix(in srgb, var(--danger) 7%, transparent); }
.sub-main { display: flex; gap: 12px; align-items: flex-start; min-width: 0; flex: 1 1 18rem; }
.sub-main p { margin: 3px 0 0; }
.sub-ico { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); }
.sub-ico .i { width: 18px; height: 18px; }
.sub-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.sub-warn { color: var(--danger); font-size: 13px; }
.tag-paid { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 30%, transparent); background: color-mix(in srgb, var(--ok) 8%, transparent); }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translate(-50%, 16px); opacity: 0; max-width: min(92vw, 30rem);
  padding: 11px 16px; border-radius: 12px; background: var(--fg); color: var(--bg); font-size: 13.5px; box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
  transition: opacity .25s, transform .25s; }
.toast.in { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: var(--danger); color: #fff; }
@media (max-width: 760px) { .toast { bottom: 84px; } }

/* ---------- animation : offre activée ---------- */
.celebrate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px;
  background: color-mix(in srgb, var(--bg) 55%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .3s ease; }
.celebrate.in { opacity: 1; }
.celebrate.out { opacity: 0; }
.cel-confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.cel-card { position: relative; width: min(100%, 26rem); padding: 32px 28px 24px; border-radius: 22px; text-align: center;
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, .25);
  transform: translateY(18px) scale(.94); opacity: 0; transition: transform .55s cubic-bezier(.2, 1.3, .4, 1), opacity .35s ease .05s; }
.celebrate.in .cel-card { transform: none; opacity: 1; }
.cel-badge { position: relative; width: 68px; height: 68px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent); animation: celPop .7s cubic-bezier(.2, 1.4, .4, 1) .15s both; }
.cel-badge .i { width: 32px; height: 32px; stroke-width: 1.8; }
.cel-badge::before, .cel-badge::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); animation: celRing 1.6s ease-out .3s 2 both; }
.cel-badge::after { animation-delay: .7s; }
.cel-kicker { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.cel-card h2 { margin: 6px 0 8px; font-family: var(--font-display); font-size: 25px; line-height: 1.15; }
.cel-card > .muted { margin: 0 0 14px; font-size: 14px; }
.cel-list { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 7px; text-align: left; }
.cel-list li { display: flex; gap: 9px; align-items: center; padding: 9px 12px; border-radius: 10px; background: var(--surface-2); font-size: 13.5px;
  opacity: 0; transform: translateY(8px); animation: celItem .45s ease forwards; animation-delay: calc(.45s + var(--i) * .09s); }
.cel-list .i { width: 16px; height: 16px; flex: none; color: var(--ok); stroke: var(--ok); }
.cel-acts { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
@keyframes celPop { from { transform: scale(.3) rotate(-20deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes celRing { from { transform: scale(1); opacity: .7; } to { transform: scale(1.9); opacity: 0; } }
@keyframes celItem { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .cel-card, .cel-badge, .cel-list li { animation: none !important; transition: opacity .2s !important; transform: none !important; opacity: 1 !important; }
  .cel-badge::before, .cel-badge::after { display: none; }
}
.link-more { align-self: flex-start; border: 0; background: none; padding: 0; color: var(--accent); font: inherit; font-size: 12.5px; cursor: pointer; }
.link-more:hover { text-decoration: underline; }
.plan-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.plan-foot .plan-note { flex: 1 1 20rem; margin: 0; }

/* ---------- récapitulatif avant paiement ---------- */
.co-modal { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 16px; overflow-y: auto;
  background: color-mix(in srgb, var(--bg) 60%, transparent); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); opacity: 0; transition: opacity .2s; }
.co-modal.in { opacity: 1; }
.co-modal.out { opacity: 0; }
.co-card { position: relative; width: min(100%, 27rem); padding: 26px 24px 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .25); display: flex; flex-direction: column; gap: 12px; transform: translateY(10px); transition: transform .25s ease; }
.co-modal.in .co-card { transform: none; }
.co-x { position: absolute; top: 10px; right: 12px; width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 22px; cursor: pointer; }
.co-x:hover { background: var(--surface-2); color: var(--fg); }
.co-kicker { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.co-card h2 { margin: -6px 0 0; font-family: var(--font-display); font-size: 24px; }
.co-tag { margin: -8px 0 0; }
.co-iv { align-self: flex-start; }
.co-iv small { color: var(--ok); font-weight: 600; }
.co-price { display: flex; align-items: baseline; gap: 6px; }
.co-price strong { font-family: var(--font-display); font-size: 38px; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.co-lines { list-style: none; margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.co-lines li { display: flex; justify-content: space-between; gap: 10px; }
.co-lines span { color: var(--muted); }
.co-note { margin: 8px 0 0; line-height: 1.45; }
.co-lines b { font-weight: 600; text-align: right; }
.co-sub { margin: 2px 0 -4px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.co-feats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; }
.co-feats li { display: flex; gap: 8px; align-items: center; }
.co-feats .i { width: 15px; height: 15px; flex: none; stroke: var(--ok); }
.co-terms { margin: 0; padding: 0 0 0 18px; font-size: 12.5px; color: var(--muted); display: flex; flex-direction: column; gap: 3px; }
.co-accept { display: flex; gap: 9px; align-items: flex-start; font-size: 13.5px; cursor: pointer; }
.co-accept input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
/* recharges à la carte : quoi recharger, à quoi ça sert, combien, le prix */
.tp-modal .co-card { width: min(100%, 32rem); }
.tp-kinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: 8px; }
.tp-kinds button { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--fg); cursor: pointer; font: 600 13.5px var(--font-body); text-align: left; line-height: 1.25; }
.tp-kinds button[aria-selected="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent) inset; }
.tp-k-ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; flex: none; background: color-mix(in srgb, var(--accent) 16%, transparent); }
.tp-k-ico .i { width: 16px; height: 16px; stroke: var(--accent); }
.tp-k-ico.big { width: 44px; height: 44px; border-radius: 13px; background: var(--grad); }
.tp-k-ico.big .i { width: 22px; height: 22px; stroke: var(--on-accent, #fff); }
.tp-panel { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  background: radial-gradient(380px 160px at 0% 0%, var(--accent-soft), transparent 75%), var(--surface-2); }
.tp-ph { display: flex; gap: 12px; align-items: center; }
.tp-ph > div { display: flex; flex-direction: column; gap: 2px; }
.tp-ph > div > b { font-family: var(--font-display); font-size: 19px; letter-spacing: -0.01em; }
.tp-ph small { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tp-ph small b { color: var(--fg); }
.tp-covers-l, .tp-pick-l { margin: 2px 0 -2px; font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.tp-covers { display: flex; flex-wrap: wrap; gap: 6px; }
.tp-covers span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 999px; font-size: 13.5px; font-weight: 600; background: var(--surface); border: 1px solid var(--line); }
.tp-covers .i { width: 15px; height: 15px; stroke: var(--accent); }
.tp-pick { display: flex; flex-direction: column; gap: 12px; }
.tp-qty { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tp-step { width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); color: var(--fg); font-size: 24px; line-height: 1; cursor: pointer; }
.tp-step:hover:not(:disabled) { border-color: var(--accent); }
.tp-step:disabled { opacity: .35; cursor: default; }
.tp-n { display: flex; align-items: baseline; gap: 8px; }
.tp-n b { font-family: var(--font-display); font-size: 40px; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.tp-n span { font-size: 15px; color: var(--muted); font-weight: 600; }
.tp-range { --p: 0%; width: 100%; height: 6px; appearance: none; -webkit-appearance: none; border-radius: 999px; cursor: pointer;
  background: linear-gradient(90deg, var(--accent) var(--p), color-mix(in srgb, var(--fg) 14%, transparent) var(--p)); }
.tp-range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.tp-range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); }
.tp-presets { display: flex; gap: 6px; flex-wrap: wrap; }
.tp-presets button { flex: 1 1 0; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--fg); font: 600 13.5px var(--font-body); cursor: pointer; font-variant-numeric: tabular-nums; }
.tp-presets button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.tp-price { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 12px; border-radius: 14px; background: color-mix(in srgb, var(--fg) 4%, transparent); text-align: center; }
.tp-price strong { font-family: var(--font-display); font-size: 34px; letter-spacing: -0.02em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.tp-price small { font-size: 12.5px; color: var(--muted); }
.tp-price em { font-style: normal; font-weight: 700; color: var(--ok); }
.tp-how { display: flex; flex-direction: column; gap: 5px; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--fg) 4%, transparent); }
.tp-how p { margin: 0; display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.4; color: color-mix(in srgb, var(--fg) 78%, transparent); }
.tp-how .i { width: 15px; height: 15px; flex: none; margin-top: 2px; stroke: var(--ok); stroke-width: 2.4; }
.ut-credit { color: var(--ok); }
.co-pay { width: 100%; padding: 12px; font-size: 15px; display: inline-flex; justify-content: center; align-items: center; gap: 6px; }
.co-secure { margin: -4px 0 0; text-align: center; font-size: 12px; color: var(--muted); }
.co-err { margin: 0; font-size: 13px; color: var(--danger); text-align: center; }

/* ---------- bandeau « paiement refusé » ---------- */
#pay-banner { position: fixed; z-index: 80; left: 50%; bottom: 20px; transform: translateX(-50%); width: min(94vw, 40rem);
  display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 14px; border-radius: 14px; font-size: 13.5px;
  background: var(--surface); border: 1px solid color-mix(in srgb, var(--danger) 45%, var(--line)); box-shadow: 0 12px 34px rgba(0, 0, 0, .2); }
#pay-banner > .i { width: 18px; height: 18px; flex: none; stroke: var(--danger); }
#pay-banner > span { flex: 1; }
#pay-banner .pb-x { border: 0; background: none; color: var(--muted); font-size: 20px; cursor: pointer; padding: 0 4px; }
@media (max-width: 760px) { #pay-banner { bottom: 80px; flex-wrap: wrap; } }


/* ---------- animations par offre ---------- */
.cel-rays { display: none; }
.cel-name { white-space: nowrap; }
/* Pro : badge qui pulse plus fort, nom souligné d'un trait qui se dessine. */
.cel-pro .cel-name { background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 100% / 0 3px; padding-bottom: 2px; animation: celLine .7s ease .6s forwards; }
@keyframes celLine { to { background-size: 100% 3px; } }
/* Agence : carte dorée, rayons qui tournent derrière la couronne, nom en or qui brille. */
.celebrate.cel-gold { background: rgba(12, 9, 4, .72); }
.cel-gold .cel-card { border: 1.5px solid transparent; color: #f6efe2;
  background: linear-gradient(#17130c, #17130c) padding-box, linear-gradient(135deg, #f7e7c0, #b8913f 40%, #f7e7c0 60%, #9c7a32) border-box;
  box-shadow: 0 0 0 1px rgba(216, 178, 106, .15), 0 30px 90px rgba(0, 0, 0, .5), 0 0 120px rgba(216, 178, 106, .25); }
.cel-gold .cel-card .muted { color: #c9bda5; }
.cel-gold .cel-kicker { color: #e9cf98; }
.cel-gold .cel-badge { background: radial-gradient(circle at 35% 30%, #fff6df, #e9cf98 35%, #b8913f 80%); color: #3a2a08; box-shadow: 0 0 40px rgba(233, 207, 152, .55); width: 78px; height: 78px; }
.cel-gold .cel-badge .i { position: relative; z-index: 1; stroke: #3a2a08; width: 36px; height: 36px; }
.cel-gold .cel-badge::before, .cel-gold .cel-badge::after { border-color: #e9cf98; }
.cel-gold .cel-rays { display: block; position: absolute; inset: -46px; border-radius: 50%; z-index: -1; opacity: .55;
  background: repeating-conic-gradient(from 0deg, rgba(247, 231, 192, .55) 0 6deg, transparent 6deg 22deg);
  -webkit-mask: radial-gradient(circle closest-side, transparent 44%, #000 52%, transparent 100%); mask: radial-gradient(circle closest-side, transparent 44%, #000 52%, transparent 100%);
  animation: celSpin 14s linear infinite, celFadeIn 1s ease .3s both; }
.cel-gold .cel-name { background: linear-gradient(100deg, #b8913f 0%, #f7e7c0 25%, #d8b26a 50%, #fff6df 62%, #b8913f 100%) 0 0 / 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: celShine 2.6s linear .4s infinite; }
.cel-gold .cel-list li { background: rgba(247, 231, 192, .07); color: #f6efe2; }
.cel-gold .cel-list .i { stroke: #e9cf98; color: #e9cf98; }
.cel-gold .btn-main { background: linear-gradient(135deg, #f7e7c0, #d8b26a); color: #2b1f06 !important; border: 0; }
.cel-gold .btn-ghost { background: transparent; color: #e9cf98; border-color: rgba(233, 207, 152, .4); }
@keyframes celSpin { to { transform: rotate(360deg); } }
@keyframes celFadeIn { from { opacity: 0; } }
@keyframes celShine { to { background-position: -220% 0; } }
@media (prefers-reduced-motion: reduce) { .cel-gold .cel-rays, .cel-gold .cel-name, .cel-pro .cel-name { animation: none !important; } .cel-pro .cel-name { background-size: 100% 3px; } }

/* ---------- fenêtre de résiliation ---------- */
.cx-card { width: min(100%, 29rem); }
.cx-lead { margin: -4px 0 0; font-size: 14px; line-height: 1.55; }
.cx-lost { padding: 10px 14px; border-radius: 12px; background: var(--surface-2); font-size: 13.5px; }
.cx-lost p { margin: 0 0 4px; color: var(--muted); font-size: 12.5px; }
.cx-lost ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 2px; }
.cx-alt { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; text-align: left; cursor: pointer; font: inherit; color: var(--fg);
  padding: 11px 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); background: var(--accent-soft); transition: border-color .15s; }
.cx-alt:hover { border-color: var(--accent); }
.cx-alt span { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; }
.cx-alt small { color: var(--muted); font-size: 12px; }
.cx-alt .i { width: 18px; height: 18px; flex: none; stroke: var(--accent); }
.cx-why { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cx-why legend { padding: 0; margin-bottom: 8px; font-size: 13px; font-weight: 600; }
.cx-why legend small { color: var(--muted); font-weight: 400; }
.cx-reasons { display: flex; flex-wrap: wrap; gap: 6px; }
.cx-reasons label { cursor: pointer; }
.cx-reasons input { position: absolute; opacity: 0; pointer-events: none; }
.cx-reasons span { display: inline-block; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); font-size: 12.5px; color: var(--muted); transition: all .15s; }
.cx-reasons input:checked + span { border-color: var(--accent); color: var(--fg); background: var(--accent-soft); }
.cx-reasons input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.cx-why textarea { width: 100%; resize: vertical; padding: 9px 11px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font: inherit; font-size: 13.5px; }
.cx-acts { display: flex; flex-direction: column; gap: 8px; }
.cx-acts button { width: 100%; padding: 11px; }
.cx-done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 6px 4px 2px; }
.cx-done h2 { margin: 4px 0 0; font-family: var(--font-display); font-size: 22px; }
.cx-done p { margin: 0; font-size: 14px; line-height: 1.55; }
.cx-done .muted { font-size: 13px; }
.cx-done .btn-main { margin-top: 8px; min-width: 9rem; }
.cx-done-ico { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--ok) 14%, transparent);
  animation: celPop .6s cubic-bezier(.2, 1.4, .4, 1) both; }
.cx-done-ico .i { width: 26px; height: 26px; stroke: var(--ok); stroke-width: 2.2; }
.cx-thanks { color: var(--muted); font-size: 13px !important; }

/* ---------- Labo PPV ---------- */
.lab { border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); background: color-mix(in srgb, var(--accent) 6%, var(--bg)); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 8px; }
.lab.lab-empty p { margin: 4px 0 0; color: var(--muted); }
.lab-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.lab-head strong { font-family: var(--font-display); }
.lab-rank { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.lab-rank li span { overflow-wrap: anywhere; }
.lab-rank li { display: list-item; }
.lab-rank li b { float: right; margin-left: 10px; color: var(--accent); white-space: nowrap; }
.lab-funnel { display: flex; flex-direction: column; gap: 5px; }
.lab-funnel > div { display: grid; grid-template-columns: minmax(0, 11rem) 1fr 3rem; align-items: center; gap: 8px; font-size: 12.5px; }
.lab-funnel span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.lab-funnel i { height: 8px; border-radius: 99px; background: var(--surface-2); position: relative; overflow: hidden; }
.lab-funnel i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--grad); border-radius: inherit; }
.lab-funnel b { text-align: right; }
.lab-verdict { line-height: 1.5; }
.lab-panel { border-top: 1px dashed var(--line); padding-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.lab-sum { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.lab-sum b { font-family: var(--font-display); font-size: 17px; color: var(--accent); }
.lab-runs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; color: var(--muted); }
.lab-runs li { display: flex; justify-content: space-between; gap: 8px; }
.lab-runs button { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 0 4px; }
.lab-runs button:hover { color: var(--danger); }
.lab-form { display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.lab-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lab-form label { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; color: var(--muted); }
.lab-tiers { display: flex; flex-direction: column; gap: 6px; }
.lab-tiers label { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px; }
.lab-tiers label span { flex: 1 1 100%; color: var(--fg); font-weight: 600; overflow-wrap: anywhere; }
.lab-form input { min-width: 0; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--fg); font: inherit; }
.lab-tiers input { width: 5.5rem; }
.lab-form .btn-main { align-self: flex-start; }
@media (max-width: 520px) { .lab-row { grid-template-columns: 1fr; } .lab-funnel > div { grid-template-columns: minmax(0, 7rem) 1fr 2.6rem; } }

/* ---------- Trafic : liens de tracking ---------- */
.tr-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.tr-kpis > div { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--bg); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tr-kpis b { font-family: var(--font-display); font-size: 22px; }
.tr-kpis span { font-size: 12.5px; color: var(--muted); }
em.up, em.down { font-style: normal; font-weight: 600; font-size: 12px; }
em.up { color: var(--ok); }
em.down { color: var(--danger); }
.tr-groups { gap: 16px; margin-bottom: 8px; }
.tr-groups p { margin: 0 0 6px; }
.tr-link { display: flex; flex-direction: column; gap: 10px; }
.tr-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.tr-name { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.tr-name strong { font-family: var(--font-display); overflow-wrap: anywhere; }
.tr-url { display: flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; }
.tr-url code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 5px 9px; font-size: 13px; overflow-wrap: anywhere; }
.tr-spark { display: grid; grid-template-columns: repeat(14, 1fr); gap: 3px; height: 38px; align-items: end; }
.tr-spark i { display: block; height: max(3px, var(--h)); background: var(--grad); border-radius: 3px 3px 1px 1px; opacity: .85; }
.tr-nums { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; font-size: 13px; color: var(--muted); }
.tr-nums b { color: var(--fg); font-size: 15px; }
.tr-subs { display: inline-flex; align-items: center; gap: 6px; }
.tr-subs input { width: 5.5rem; padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--fg); font: inherit; }
.tr-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
@media (max-width: 640px) { .tr-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Alertes automatiques ---------- */
.alerts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.alerts li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; border: 1px solid var(--line); border-left-width: 3px; border-radius: 10px; padding: 8px 10px; background: var(--bg); }
.alerts li p { margin: 0; font-size: 13.5px; line-height: 1.45; }
.alerts .al-warn { border-left-color: var(--warn); }
.alerts .al-good { border-left-color: var(--ok); }
.alerts .al-info { border-left-color: var(--accent); }
.al-ico { font-size: 16px; }
@media (max-width: 640px) { .alerts li { grid-template-columns: auto 1fr; } .alerts li button { grid-column: 2; justify-self: start; } }
.tr-link.flash { outline: 2px solid var(--accent); outline-offset: 2px; transition: outline-color .4s; }

/* ---------- Fiche créatrice ---------- */
.creator-item .cr-main { flex: 1; }
.cr-open { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; border: 0; background: none; padding: 0; color: inherit; font: inherit; cursor: pointer; text-align: left; }
.cr-open:hover strong { color: var(--accent); }
.creator-item.open { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.cf { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.cf-sec h4 { margin: 0 0 6px; font-size: 13px; font-family: var(--font-display); }
.cf-list, .cf-notes { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.cf-list li { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; color: var(--muted); }
.cf-list li b { color: var(--fg); }
.cf-notes li { color: var(--muted); padding-left: 12px; position: relative; }
.cf-notes li::before { content: "•"; position: absolute; left: 0; color: var(--accent); }
.cf .dl { margin-top: 0; }

/* ---------- Organisation : rubriques de la barre latérale, onglets qui restent en haut ---------- */
.nav { gap: 2px; }
.nav-label { margin: 14px 12px 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); opacity: .75; }
.nav-label:first-child { margin-top: 4px; }
.nav button { padding: 8px 12px; }
.co-tabs.sticky { position: sticky; top: 0; z-index: 5; box-shadow: 0 6px 14px -10px rgba(0, 0, 0, .45); }
.co-alerts .alerts li:nth-child(n+4) { display: none; }
.co-alerts.all .alerts li:nth-child(n+4) { display: grid; }

/* ---------- Liens & trafic ---------- */
.tr-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.tr-filters select { padding: 6px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); color: var(--fg); font: inherit; font-size: 13px; }
.tr-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 10px; }
.tr-ov-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.tr-ov-foot p { margin: 0; }
.tr-kpis.sm b { font-size: 18px; }
.tr-head, .tr-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.5fr) minmax(0, 1.4fr) 6.5rem 6rem 2rem; gap: 12px; align-items: center; }
.tr-head { padding: 0 12px 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.tr-row { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--bg); margin-bottom: 8px; }
.tr-row.open { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.tr-row.flash { outline: 2px solid var(--accent); outline-offset: 2px; }
.tr-main { border: 0; background: none; padding: 0; text-align: left; color: inherit; font: inherit; cursor: pointer; min-width: 0; }
.tr-main:hover strong { color: var(--accent); }
.tr-row .tr-url { display: flex; align-items: center; gap: 6px; min-width: 0; }
.tr-row .tr-url code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; font-size: 12.5px; }
.icon-btn.sm { width: 30px; height: 30px; border-radius: 8px; }
.icon-btn.sm .i { width: 15px; height: 15px; }
.tr-week { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); min-width: 0; }
.tr-week b { color: var(--fg); font-size: 14px; }
.tr-row .tr-spark { height: 24px; }
.tr-row .tr-subs input { width: 100%; }
.tr-conv { display: flex; flex-direction: column; font-size: 13px; }
.tr-chev { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 12px; }
.tr-detail { grid-column: 1 / -1; border-top: 1px dashed var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 14px; }
.tr-chart { display: flex; gap: 2px; align-items: flex-end; height: 120px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.tr-chart i { flex: 1; height: max(2px, var(--h)); background: color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 3px 3px 0 0; position: relative; }
.tr-chart i::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--u) / var(--h) * 100%); max-height: 100%; background: var(--accent); border-radius: inherit; }
.tr-axis { display: flex; gap: 2px; margin-top: -8px; }
.tr-axis span { flex: 1; font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: visible; }
.tr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px 22px; }
.tr-grid h4 { margin: 0 0 8px; font-size: 13px; font-family: var(--font-display); }
.tr-hours { display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; height: 54px; align-items: end; }
.tr-hours i { height: max(2px, var(--h)); background: var(--grad); border-radius: 2px 2px 0 0; }
.tr-hours-axis { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--muted); margin: 3px 0 6px; }
.tr-grid p { margin: 0; }
.tr-edit { border-top: 1px dashed var(--line); padding-top: 12px; }
.tr-empty { text-align: center; padding: 18px 10px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.tr-empty p { margin: 0; }
.tr-help summary { cursor: pointer; }
.tr-help ol { margin: 12px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; line-height: 1.5; }
@media (max-width: 980px) {
  .tr-head { display: none; }
  .tr-row { grid-template-columns: minmax(0, 1fr) auto; }
  .tr-row .tr-url, .tr-week, .tr-subs, .tr-conv { grid-column: 1 / -1; }
  .tr-chev { grid-row: 1; grid-column: 2; }
  .tr-groups { grid-template-columns: 1fr; }
}
.tr-row .tr-url { flex-wrap: nowrap; }
.tr-row { scroll-margin-top: 16px; }

/* ---------- Accompagnement : onglets dans l'en-tête, mise en page de chaque onglet ---------- */
.co-tabbar { padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--bg); }
.co-tabbar .co-tabs { max-width: calc(72rem - 32px); margin: 0 auto; }
/* Ma semaine : la semaine en haut, les tâches à gauche, les alertes et le retour du coach à droite */
@media (min-width: 1100px) {
  /* Ma semaine : la semaine en haut, les tâches à gauche (en grand), engagements, alertes et retour du coach à droite */
  .co-pane[data-pane="semaine"]:not([hidden]) {
    display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); column-gap: 18px; row-gap: 0; align-items: start;
    grid-template-areas: "week week" "palier palier" "checkin checkin" "tasks commits" "tasks alerts" "tasks feedback" "tasks .";
    grid-template-rows: repeat(6, auto) 1fr;
  }
  .co-pane[data-pane="semaine"] > :not([hidden]) { margin-bottom: 18px; }
  .co-pane[data-pane="semaine"] > .co-week { grid-area: week; }
  .co-pane[data-pane="semaine"] > #co-palier { grid-area: palier; }
  .co-pane[data-pane="semaine"] > #co-checkin { grid-area: checkin; }
  .co-pane[data-pane="semaine"] > #co-tasks-card { grid-area: tasks; }
  .co-pane[data-pane="semaine"] > #co-commit-card { grid-area: commits; }
  .co-pane[data-pane="semaine"] > #co-alerts { grid-area: alerts; }
  .co-pane[data-pane="semaine"] > #co-feedback-card { grid-area: feedback; }
  .co-pane[data-pane="semaine"] .alerts li { grid-template-columns: auto 1fr; }
  .co-pane[data-pane="semaine"] .alerts li button { grid-column: 2; justify-self: start; }
  #co-commit-add { flex-wrap: wrap; }
  #co-commit-add #co-commit-text { flex: 1 1 100%; }
}
/* Coach : la discussion prend toute la hauteur, la zone d'écriture reste visible */
#co-chat-card .co-thread { max-height: none; height: max(320px, calc(100dvh - 380px)); }
#co-chat-card .card-head { flex-wrap: wrap; }
#co-status:empty { display: none; }
.co-alerts .card-head { flex-wrap: wrap; row-gap: 2px; }
.co-alerts .card-head .muted { flex-basis: 100%; }
#co-chat-card .co-thread { height: max(300px, calc(100dvh - 440px)); }

/* ---------- photo de profil ---------- */
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.me .avatar { width: 36px; height: 36px; font-size: 14px; }
.avatar.xl { width: 76px; height: 76px; font-size: 28px; }
.pf-avatar { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px dashed var(--line); }
.pf-avatar strong { font-family: var(--font-display); }
.pf-avatar p { margin: 2px 0 8px; }
.pf-avatar .actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pf-avatar-pick { cursor: pointer; }

/* ---------- passage fluide site ↔ appli ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .2s ease both; }
::view-transition-new(root) { animation: vt-in .34s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes vt-out { to { opacity: 0; transform: scale(.99); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }
.brand .logo { view-transition-name: velora-logo; }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }

/* ---------- écran de bienvenue ---------- */
.welcome { position: fixed; inset: 0; z-index: 2000; display: none; place-items: center; background: var(--bg); overflow: hidden; cursor: default; }
.welcome-on .welcome { display: grid; }
.welcome-glow { position: absolute; inset: -25%; pointer-events: none;
  background: radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 55%),
              radial-gradient(circle at 70% 70%, color-mix(in srgb, var(--accent-2, var(--accent)) 16%, transparent), transparent 50%);
  animation: wGlow 2.6s ease-in-out infinite alternate; }
.welcome-in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding: 24px; }
.welcome-mark .logo { width: 58px; height: 58px; border-radius: 17px; display: grid; place-items: center; font-size: 27px; font-weight: 800; background: var(--grad); color: var(--on-accent, #fff);
  box-shadow: 0 14px 44px -12px color-mix(in srgb, var(--accent) 75%, transparent); animation: wPop .6s cubic-bezier(.2, 1.4, .4, 1) both; }
.welcome-avatar { width: 98px; height: 98px; font-size: 38px; box-shadow: 0 0 0 4px var(--bg), 0 0 0 7px var(--accent); animation: wPop .7s .15s cubic-bezier(.2, 1.4, .4, 1) both; }
.welcome-avatar:empty { display: none; }
.welcome-title { margin: 6px 0 0; font-family: var(--font-display); font-size: clamp(26px, 4.2vw, 40px); letter-spacing: -0.02em; animation: wUp .6s .3s both; }
.welcome-sub { margin: 0; color: var(--muted); font-size: 15px; animation: wUp .6s .42s both; }
.welcome-bar { width: 190px; height: 4px; margin-top: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; animation: wUp .5s .5s both; }
.welcome-bar span { display: block; width: 40%; height: 100%; border-radius: inherit; background: var(--grad); animation: wBar 1.1s ease-in-out infinite; }
.welcome.leave { animation: wOut .55s ease forwards; }
.welcome.leave + .lock, .welcome.leave ~ .app { animation: appIn .6s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes wPop { from { opacity: 0; transform: scale(.6); } }
@keyframes wUp { from { opacity: 0; transform: translateY(12px); } }
@keyframes wBar { from { transform: translateX(-110%); } to { transform: translateX(260%); } }
@keyframes wGlow { to { transform: scale(1.12); opacity: .75; } }
@keyframes wOut { to { opacity: 0; transform: scale(1.05); filter: blur(6px); visibility: hidden; } }
@keyframes appIn { from { opacity: .3; transform: scale(.985) translateY(8px); } }
/* Le logo du site glisse jusqu'au logo de la bienvenue (au lieu de celui de la barre latérale) */
.welcome-on .brand .logo { view-transition-name: none; }
.welcome-on .welcome-mark .logo { view-transition-name: velora-logo; }
@media (prefers-reduced-motion: reduce) {
  .welcome *, .welcome { animation-duration: .01s !important; animation-delay: 0s !important; }
}

/* ---------- prospection : déroulé de la recherche (admin) ---------- */
.res-trace { border: 1px dashed var(--line); border-radius: 12px; padding: 10px 14px; margin: 10px 0; background: var(--bg); }
.res-trace summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.trace-steps { margin: 10px 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.trace-q { display: flex; flex-direction: column; gap: 4px; max-height: 260px; overflow-y: auto; }
.trace-q > div { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 12.5px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.trace-q code { overflow-wrap: anywhere; }
.err-txt { color: var(--danger); }

/* ---------- Accompagnement : argent de l'agence, paliers, engagements ---------- */
.neg { color: var(--danger); }
.co-sub { margin: 14px 0 6px; font-size: 13px; font-family: var(--font-display); }
.co-cr-row { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.1fr) minmax(0, 1fr) 30px; }
.co-cost-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.goal-st { color: var(--fg) !important; font-weight: 600; margin-top: 2px; }
.co-review { margin-top: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; background: var(--bg); }
.co-review summary { cursor: pointer; font-size: 13.5px; font-weight: 600; }
.co-review .bubble { margin-top: 8px; }
.co-palier { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: radial-gradient(500px 200px at 100% 0%, var(--accent-soft), transparent 70%), var(--surface); }
.co-palier p { margin: 0; }
#co-commits { display: flex; flex-direction: column; gap: 8px; }
.commit { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; background: var(--bg); flex-wrap: wrap; }
.commit .pill { flex: none; }
.commit-txt { flex: 1; min-width: 10rem; font-size: 14px; overflow-wrap: anywhere; }
.commit-acts { display: flex; gap: 6px; align-items: center; }
.commit-del { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 14px; padding: 2px 4px; }
.commit-del:hover { color: var(--danger); }
.co-closed { font-size: 13px; }
.co-closed summary { cursor: pointer; color: var(--accent); font-weight: 600; margin-bottom: 6px; }
.add .co-date { flex: 0 0 auto; min-width: 0; width: 10.5rem; }

/* ---------- Fiche créatrice complète ---------- */
.cr-check { font-size: 11.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line); color: var(--warn); }
.cr-check.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.cr-warn { font-size: 13px; }
.cr-toggle { margin-left: auto; }
.cf-sec h5 { margin: 10px 0 4px; font-size: 12.5px; }
.cf-sec p { margin: 6px 0; }
.cf-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: 6px 14px; margin: 0; font-size: 13px; }
.cf-facts div { min-width: 0; }
.cf-facts dt { color: var(--muted); font-size: 11.5px; }
.cf-facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.cf-accounts { display: flex; gap: 6px; flex-wrap: wrap; }
.cf-accounts a.tag { text-decoration: none; color: var(--accent); }
.cf-checklist { margin-top: 8px; }
.cf-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cf-actions { display: flex; flex-direction: column; gap: 6px; }
.cf-actions .task { align-items: center; }
.cf-actions .task button { font-size: 12.5px; color: var(--fg); border: 1px solid var(--line); white-space: nowrap; }
.cf-form { margin-top: 4px; }
.cf-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 8px; }
.cf-links .field { font-weight: 500; font-size: 12.5px; }

/* ---------- Revue de travail ---------- */
#co-audits { display: flex; flex-direction: column; gap: 6px; }
.audit-item { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; background: var(--bg); color: inherit; font: inherit; cursor: pointer; }
.audit-item:hover { border-color: var(--accent); }
.audit-item > span:last-child { display: flex; flex-direction: column; gap: 1px; min-width: 0; font-size: 13.5px; }
.audit-item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.audit-note { flex: none; font-weight: 700; font-size: 12.5px; padding: 3px 8px; border-radius: 8px; border: 1px solid currentColor; font-variant-numeric: tabular-nums; }
.audit-note.big { font-size: 16px; padding: 4px 10px; }
.audit-note.ok { color: var(--ok); } .audit-note.mid { color: var(--warn); } .audit-note.low { color: var(--danger); }
.audit-grid { list-style: none; margin: 12px 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.audit-grid li { display: flex; gap: 10px; align-items: flex-start; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.audit-grid li:last-child { border-bottom: 0; }
.audit-grid li > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 13.5px; }
.audit-grid small { color: var(--muted); font-size: 12.5px; }
.audit-grid p { margin: 2px 0 0; }
.audit-st { flex: none; width: 1.4em; text-align: center; }
.rewrite { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; background: var(--bg); display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.rewrite p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.rewrite .before { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--danger) 60%, transparent); }
.rewrite .after { border-left: 3px solid var(--ok); padding-left: 10px; }
.rewrite button { align-self: flex-start; }

/* ---------- Formation des chatters ---------- */
.fm-thread { max-height: min(56vh, 600px); min-height: 160px; }
.msg.fm-fan::before { content: "🙂"; background: var(--surface-2); border: 1px solid var(--line); font-size: 15px; }
.msg.fm-fan .bubble { flex: 0 1 auto; max-width: 85%; background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; padding: 9px 14px; }
.msg.user .fm-tag { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .45); color: inherit; }
.fm-who { display: block; color: var(--muted); font-size: 11.5px; font-weight: 600; margin-bottom: 2px; }
.fm-tag { margin-top: 6px; font-size: 12.5px; padding: 4px 8px; border-radius: 8px; background: var(--surface-2); border: 1px dashed var(--line); }
.fm-tag.ok { color: var(--ok); border-style: solid; border-color: color-mix(in srgb, var(--ok) 40%, transparent); background: color-mix(in srgb, var(--ok) 8%, transparent); }
.fm-ppv { display: flex; gap: 8px; flex-wrap: wrap; }
.fm-ppv input { flex: 1; min-width: 8rem; background: var(--bg); border: 1px solid var(--accent); border-radius: 10px; padding: 8px 10px; color: var(--fg); font: inherit; }
.fm-ppv input[type="number"] { flex: 0 0 7rem; }
#fm-ppv-toggle[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
#fm-session { gap: 10px; }
.fm-team { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.fm-team li, .fm-grid li { display: grid; grid-template-columns: minmax(0, 8rem) 1fr auto; gap: 4px 10px; align-items: center; font-size: 13.5px; }
.fm-team small, .fm-grid small { grid-column: 1 / -1; font-size: 12.5px; }
.fm-grid { list-style: none; margin: 10px 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.fm-grid li { grid-template-columns: minmax(0, 13rem) 1fr auto; }
.fm-bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.fm-bar i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--accent); }
.fm-bar.ok i { background: var(--ok); } .fm-bar.mid i { background: var(--warn); } .fm-bar.low i { background: var(--danger); }
.fm-replay { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; font-size: 13px; max-height: 340px; overflow-y: auto; }
.fm-replay p { margin: 0; overflow-wrap: anywhere; }
.fm-replay p.fan { color: var(--muted); }
#fm-history .audit-row, #co-audits .audit-row { margin-bottom: 6px; }

/* ---------- Équipe (chatters de l'agence) ---------- */
#tm-members { display: flex; flex-direction: column; gap: 8px; }
.tm-member, .tm-inv { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--bg); display: flex; flex-direction: column; gap: 8px; }
.tm-head { display: flex; gap: 8px 10px; align-items: center; flex-wrap: wrap; }
.tm-head .linkish { margin-left: auto; }
.tm-invite { display: flex; flex-direction: column; gap: 10px; border-top: 1px dashed var(--line); padding-top: 6px; }
.tm-invite .co-sub { margin-top: 6px; }
#tm-invites { display: flex; flex-direction: column; gap: 8px; }
.tm-inv code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 5px 9px; font-size: 12.5px; overflow-wrap: anywhere; }
.tm-inv.flash { outline: 2px solid var(--accent); outline-offset: 2px; }
#a-team { margin: 0; }

/* ---------- Mon agence : nom en haut, discussion d'équipe ---------- */
.agency-chip {
  display: flex; align-items: center; gap: 8px; margin: 10px 0 0; padding: 7px 10px; width: 100%;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); border-radius: 10px; background: var(--accent-soft);
  color: var(--fg); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; text-align: left;
}
.agency-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agency-chip .i { stroke: var(--accent); }
.agency-chip:hover { border-color: var(--accent); }
/* Chatter avec sa propre offre : le bandeau « Tu es dans… » (doré : Mon espace · violet : l'agence) */
.space-bar { --sb: #7b7b7a; flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; padding: 5px 20px 5px 24px;
  border-bottom: 1px solid var(--line); background: linear-gradient(90deg, color-mix(in srgb, var(--sb) 11%, transparent), transparent 55%); box-shadow: inset 3px 0 0 var(--sb); }
.space-bar[hidden] { display: none; }
.space-bar[data-space="own"] { --sb: #e9b45f; }
.sb-now { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; white-space: nowrap; }
.sb-now .i { width: 15px; height: 15px; stroke: var(--sb); flex: none; }
.sb-now b { font-weight: 700; color: var(--fg); }
.sb-now span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.sb-sw { flex: none; display: flex; gap: 2px; padding: 2px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--line); }
.sb-sw button { height: 26px; padding: 0 11px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.sb-sw button:not(.on):hover { color: var(--fg); }
.sb-sw button.on { background: var(--surface); color: var(--fg); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--sb) 70%, transparent); cursor: default; }
@media (max-width: 760px) { .space-bar { padding: 5px 12px; } .sb-now span { display: none; } }
.studio-nav .space-bar { display: none !important; }
/* Chatter IA (public/aichat.js) */
.ai-warn { display: flex; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(245,185,65,.35); background: rgba(245,185,65,.07); font-size: 13px; line-height: 1.5; }
.ai-warn .i { width: 18px; height: 18px; flex: none; stroke: #f5b941; margin-top: 2px; } .ai-warn p { margin: 0; color: var(--muted); } .ai-warn b { color: var(--fg); }
.danger-btn { color: var(--danger) !important; border-color: color-mix(in srgb, var(--danger) 45%, var(--line)) !important; }
.ai-acc { display: flex; flex-direction: column; gap: 10px; }
.ai-acc-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; } .ai-acc-h h2, .ai-acc-h h3 { margin: 0; } .ai-acc-h h3 { font-size: 15px; margin-top: 6px; }
.ai-modes { display: flex; gap: 3px; padding: 3px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--line); }
.ai-modes button { height: 30px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 650; cursor: pointer; }
.ai-modes button:disabled { opacity: .45; cursor: not-allowed; } .ai-modes button:not(.on):not(:disabled):hover { color: var(--fg); }
.ai-modes button.on { background: var(--surface); color: var(--fg); box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.ai-modes button.on.m-suggest { box-shadow: inset 0 0 0 1.5px #60a5fa; } .ai-modes button.on.m-hybrid { box-shadow: inset 0 0 0 1.5px #9d9d9c; } .ai-modes button.on.m-auto { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent); }
.ai-hint { margin: 0; font-size: 12.5px; color: var(--muted); padding-left: 10px; border-left: 3px solid var(--line); }
.ai-hint.m-suggest { border-color: #60a5fa; } .ai-hint.m-hybrid { border-color: #9d9d9c; } .ai-hint.m-auto { border-color: var(--accent); }
.ai-det { border: 1px solid var(--line); border-radius: 11px; padding: 0 12px; } .ai-det[open] { padding-bottom: 12px; }
.ai-det summary { cursor: pointer; padding: 10px 0; font-weight: 650; font-size: 13.5px; }
.ai-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 12px; }
.ai-grid label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 600; color: var(--muted); } .ai-grid .wide { grid-column: 1 / -1; }
.ai-grid label.check { flex-direction: row; align-items: center; gap: 8px; font-size: 13px; color: var(--fg); }
.ai-grid input:not([type=checkbox]), .ai-grid select, .ai-grid textarea { font: inherit; font-size: 13.5px; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; resize: vertical; }
.ai-acts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ai-days { display: flex; flex-wrap: wrap; gap: 6px 14px; } .ai-days label.check { flex-direction: row; align-items: center; gap: 5px; font-size: 13px; color: var(--fg); }
.ai-sbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; } .ai-sbar p { margin: 0; max-width: 680px; }
.ai-scripts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; } .ai-script { display: flex; flex-direction: column; gap: 6px; } .ai-script p { margin: 0; font-size: 13px; } .ai-script.off { opacity: .6; }
.ai-form { max-width: 640px; } .ai-form .ai-grid { margin: 12px 0 16px; }
.ai-modal { place-items: start center; } .ai-modal .co-card { width: min(100%, 44rem); max-width: none; margin: 24px 0; display: flex; flex-direction: column; gap: 12px; }
.ai-fs { border: 1px solid var(--line); border-radius: 13px; padding: 4px 14px 12px; margin: 0; min-width: 0; } .ai-fs legend { padding: 0 6px; font-weight: 700; font-size: 13.5px; }
.ai-fs > .ai-grid, .ai-step .ai-grid { margin: 6px 0 0; grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); } .ai-fhint { margin: -2px 0 0; }
.ai-chips { display: flex; flex-wrap: wrap; gap: 6px; } .ai-chips label.check { flex-direction: row; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 12.5px; font-weight: 500; color: var(--fg); cursor: pointer; }
.ai-chips label.check:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.ai-import { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 8px 0 4px; padding: 9px 11px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 8%, transparent); font-size: 12.5px; font-weight: 600; }
.ai-import .i { width: 15px; height: 15px; } .ai-import select { flex: 1; min-width: 180px; font: inherit; font-size: 13px; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 9px; padding: 6px 9px; }
.ai-step { border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px 12px; margin: 10px 0; background: var(--bg); }
.ai-step-h { display: flex; align-items: center; gap: 9px; } .ai-step-n { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--on-accent, #fff); background: var(--accent); }
.ai-step-h input { flex: 1; min-width: 0; font: inherit; font-size: 13.5px; font-weight: 650; color: var(--fg); background: transparent; border: 1px solid transparent; border-radius: 8px; padding: 6px 8px; } .ai-step-h input:hover, .ai-step-h input:focus { border-color: var(--line); background: var(--surface); }
.ai-step-acts { display: flex; gap: 4px; } .ai-step-acts button { width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--fg); cursor: pointer; font-size: 14px; } .ai-step-acts button:disabled { opacity: .35; cursor: default; }
.ai-sum { display: flex; gap: 9px; align-items: flex-start; margin: 0; padding: 10px 12px; border-radius: 11px; background: var(--surface-2); font-size: 13px; line-height: 1.45; } .ai-sum .i { flex: none; width: 16px; height: 16px; margin-top: 2px; }
.ai-active { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.ai-steps-mini { margin: 2px 0; padding-left: 20px; font-size: 12.5px; color: var(--muted); } .ai-steps-mini .i { width: 12px; height: 12px; vertical-align: -1px; stroke: #f5b941; }
.ai-script .ai-acc-h { flex-wrap: nowrap; align-items: flex-start; } .ai-script .ai-acc-h > div { min-width: 0; } .ai-script .au-sw { flex: none; } .ai-script .pill { display: inline-block; white-space: nowrap; margin: 0 4px 4px 0; }
.ai-motor { margin-bottom: 14px; }
.ai-live { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; padding: 8px 11px; border-radius: 10px; font-size: 13px; }
.ai-live:empty, .ai-live.off { display: none; } .ai-live i { flex: none; width: 9px; height: 9px; border-radius: 50%; }
.ai-live.on { background: rgba(34,197,94,.09); border: 1px solid rgba(34,197,94,.35); } .ai-live.on i { background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.18); }
.ai-live.down { background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.35); } .ai-live.down i { background: #ef4444; }
.ai-check { margin-bottom: 14px; } .ai-check summary b.bad { color: #ef4444; } .ai-check summary b.good { color: #22c55e; }
.ai-issues { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ai-issues li { display: flex; gap: 10px; padding: 9px 11px; border-radius: 10px; border: 1px solid var(--line); font-size: 13px; }
.ai-issues li p { margin: 3px 0; } .ai-issues li small { color: var(--muted); } .ai-issues .i { flex: none; width: 16px; height: 16px; margin-top: 2px; }
.ai-issues .lv-bad { border-color: rgba(239,68,68,.45); background: rgba(239,68,68,.07); } .ai-issues .lv-bad .i { stroke: #ef4444; }
.ai-issues .lv-warn { border-color: rgba(245,185,65,.45); background: rgba(245,185,65,.06); } .ai-issues .lv-warn .i { stroke: #f5b941; }
.ai-warnline { margin: 0; padding: 7px 10px; border-radius: 8px; background: rgba(245,185,65,.1); border: 1px solid rgba(245,185,65,.4); font-size: 12.5px; } .ai-motor input[type=range] { padding: 0; accent-color: var(--accent); }
.ai-sus { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; padding: 10px 12px; border-radius: 11px; background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.35); font-size: 13px; }
.ai-sus .i { width: 16px; height: 16px; stroke: #ef4444; flex: none; } .ai-sus span { flex: 1; min-width: 200px; }
.ai-prio.p3 { background: rgba(239,68,68,.14); color: #ef4444; } .ai-prio.p1 { opacity: .7; }
.ai-simchat .hp-sys.ai-ev { font-size: 11.5px; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); }
.ai-simsel { display: flex; gap: 10px; flex-wrap: wrap; } .ai-simsel label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.ai-simsel select { font: inherit; font-size: 13px; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 9px; padding: 7px 10px; }
.ai-sim { display: flex; flex-direction: column; gap: 10px; }
.ai-simchat { min-height: 280px; max-height: 52vh; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.ai-simchat .hp-m.ai-fan { background: #3b82f6; color: #fff; }
.ai-simsay svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ai-simchat .hp-m { max-width: 78%; padding: 8px 11px; border-radius: 13px; font-size: 13.5px; line-height: 1.4; } .ai-simchat .hp-m p { margin: 0; white-space: pre-wrap; }
.ai-simchat .hp-m.me { align-self: flex-end; border-bottom-right-radius: 4px; } .ai-simchat .hp-m.them { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 4px; }
.ai-simchat .hp-sys { align-self: center; font-size: 12px; color: var(--muted); }
.ai-simsay { display: flex; gap: 8px; } .ai-simsay textarea { flex: 1; font: inherit; font-size: 13.5px; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; resize: none; }
.ai-simsay button { width: 40px; height: 40px; border: 0; border-radius: 10px; background: var(--accent); color: var(--on-accent, #fff); display: grid; place-items: center; cursor: pointer; } .ai-simchat .ai-bot small { display: block; margin-top: 4px; font-size: 11px; opacity: .7; text-align: left; }
.ai-offer { display: flex; align-items: center; gap: 8px; margin-top: 7px; padding: 7px 9px; border-radius: 9px; background: rgba(245,185,65,.1); border: 1px solid rgba(245,185,65,.35); }
.ai-offer .i { width: 14px; height: 14px; stroke: #f5b941; } .ai-offer span { flex: 1; min-width: 0; } .ai-offer b { display: block; font-size: 12.5px; } .ai-offer small { display: block; font-size: 11px; opacity: .7; }
.ai-offer em { font-style: normal; font-weight: 700; font-size: 12px; color: #1a1206; background: #f5b941; border-radius: 999px; padding: 2px 8px; }
.ai-simsay { padding: 0; border: 0; }
.ai-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; } .ai-kpi { display: flex; flex-direction: column; gap: 3px; padding: 14px; }
.ai-kpi small { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); } .ai-kpi b { font-size: 24px; font-weight: 800; }
.ai-table { width: 100%; border-collapse: collapse; font-size: 13px; } .ai-table th, .ai-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); } .ai-table th { font-size: 11.5px; color: var(--muted); font-weight: 650; }
.ai-log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ai-log li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; } .ai-log li:last-child { border-bottom: 0; }
.ai-log p { margin: 3px 0 0; color: var(--muted); } .ai-log small { font-size: 11.5px; text-align: right; }
.ai-li { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-2); } .ai-li .i { width: 14px; height: 14px; }
.ai-log .k-sent .ai-li { background: var(--accent-soft); } .ai-log .k-handoff .ai-li, .ai-log .k-error .ai-li, .ai-log .k-kill .ai-li { background: rgba(239,68,68,.14); }
/* Aide en direct (public/help.js) */
.hp { position: fixed; right: 20px; bottom: 20px; z-index: 900; width: min(370px, calc(100vw - 24px)); height: min(560px, calc(100vh - 40px)); display: flex; flex-direction: column;
  border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0,0,0,.45); overflow: hidden; animation: hpIn .2s cubic-bezier(.2,.7,.3,1); }
.hp[hidden] { display: none; }
@keyframes hpIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.hp svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.hp-h { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; border-bottom: 1px solid var(--line); }
.hp-h > div { flex: 1; min-width: 0; } .hp-h b { display: block; font-size: 14px; } .hp-h small { display: block; font-size: 12px; color: var(--muted); }
.hp[data-state="claimed"] .hp-h small { color: #34d399; }
.hp-av { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.hp-x { width: 30px; height: 30px; border-radius: 8px; border: 0; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.hp-x:hover { background: var(--surface-2); color: var(--fg); }
.hp-new { padding: 14px; display: flex; flex-direction: column; gap: 10px; overflow: auto; }
.hp-new p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.45; }
.hp-new label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 600; color: var(--muted); }
.hp-new input, .hp-new textarea, .hp-say textarea { font: inherit; font-size: 13.5px; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; resize: none; }
.hp-new input:focus, .hp-new textarea:focus, .hp-say textarea:focus { outline: none; border-color: var(--accent); }
.hp-go { height: 40px; border: 0; border-radius: 10px; background: var(--accent); color: var(--on-accent, #fff); font: inherit; font-weight: 650; cursor: pointer; }
.hp-go:disabled { opacity: .6; cursor: wait; }
.hp-err { color: var(--danger); min-height: 1em; }
.hp-chat { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.hp-msgs { flex: 1; min-height: 0; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.hp-m { max-width: 82%; padding: 8px 11px; border-radius: 13px; font-size: 13.5px; line-height: 1.4; }
.hp-m p { margin: 0; white-space: pre-wrap; word-break: break-word; }
.hp-m b { display: block; font-size: 11.5px; color: var(--accent); margin-bottom: 2px; }
.hp-m small { display: block; margin-top: 3px; font-size: 10.5px; opacity: .6; text-align: right; }
.hp-m.me { align-self: flex-end; background: var(--accent); color: var(--on-accent, #fff); border-bottom-right-radius: 4px; }
.hp-m.them { align-self: flex-start; background: var(--surface-2); color: var(--fg); border-bottom-left-radius: 4px; }
.hp-sys { align-self: center; max-width: 90%; margin: 2px 0; font-size: 12px; color: var(--muted); text-align: center; }
.hp-say { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.hp-say[hidden] { display: none; }
.hp-say textarea { flex: 1; min-height: 38px; max-height: 120px; }
.hp-say button { width: 38px; height: 38px; flex: none; border: 0; border-radius: 10px; background: var(--accent); color: var(--on-accent, #fff); cursor: pointer; display: grid; place-items: center; }
.hp-foot { display: flex; justify-content: center; padding: 0 0 8px; }
.hp-end { border: 0; background: none; color: var(--muted); font: inherit; font-size: 12px; text-decoration: underline; cursor: pointer; }
.hp-end[hidden] { display: none; }
.hp-rate { margin: 0 12px 10px; padding: 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.hp-rate[hidden] { display: none; }
.hp-rate b { font-size: 14px; }
.hp-stars { display: flex; gap: 6px; }
.hp-stars button { width: 36px; height: 36px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.hp-stars svg { width: 30px; height: 30px; fill: transparent; stroke: var(--muted); stroke-width: 1.5; transition: transform .12s, fill .12s, stroke .12s; }
.hp-stars button.on svg { fill: #fbbf24; stroke: #fbbf24; filter: drop-shadow(0 0 6px rgba(251,191,36,.35)); }
.hp-stars button:hover svg { transform: scale(1.12); }
.hp-rate textarea { width: 100%; font: inherit; font-size: 13px; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; resize: none; }
.hp-rate textarea:focus { outline: none; border-color: var(--accent); }
.hp-rate-go { display: flex; align-items: center; gap: 12px; width: 100%; } .hp-rate-go .hp-go { flex: 1; height: 36px; }
.hp-chat .hp-say[hidden] + .hp-rate:not([hidden]) { margin-top: 8px; }
.hp-fab { position: fixed; right: 20px; bottom: 20px; z-index: 890; display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 15px 0 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--fg); font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.hp-fab[hidden] { display: none; }
.hp-fab svg { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.hp-fab i { position: absolute; top: -2px; right: -2px; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg); }
.hp-fab i[hidden] { display: none; }
/* changement de rubrique : la page arrive en fondu court (pas d'écran qui « saute ») */
.view:not([hidden]) { animation: viewIn .18s cubic-bezier(.2, .7, .3, 1); }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .view:not([hidden]) { animation: none; } }
/* sur le site, le bandeau remplace les deux rubriques « Espace » du menu (Velora Studio, lui, les recopie dans sa barre) */
:root:not(.studio-nav) .nav [data-space], :root:not(.studio-nav) .nav [data-space-label] { display: none !important; }
/* Chatter avec sa propre offre : « Mon espace » ou l'agence */
.space-sw { display: flex; gap: 2px; margin: 8px 0 2px; padding: 3px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.space-sw[hidden] { display: none; }
.space-sw button { flex: 1 1 0; min-width: 0; padding: 6px 8px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.space-sw button:hover { color: var(--fg); }
.space-sw button.on { background: var(--surface); color: var(--fg); box-shadow: 0 1px 3px rgba(0,0,0,.28), inset 0 0 0 1px var(--line); }
.nav-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-left: auto; box-shadow: 0 0 0 3px var(--accent-soft); }
.ag-create h2 { margin: 6px 0 0; }
.ag-create p { margin: 0; }
.ag-space { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.ag-chat { gap: 12px; }
.ag-thread { display: flex; flex-direction: column; gap: 2px; height: min(62vh, 640px); overflow-y: auto; padding: 4px 2px; }
.ag-day { text-align: center; margin: 12px 0 6px; font-size: 12px; color: var(--muted); }
.ag-day span { background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.ag-row { display: flex; gap: 8px; align-items: flex-end; margin-top: 8px; position: relative; }
.ag-row.grouped { margin-top: 2px; }
.ag-row.mine { flex-direction: row-reverse; }
.ag-av { width: 30px; height: 30px; font-size: 12.5px; }
.ag-av img { width: 100%; height: 100%; object-fit: cover; }
.ag-av-gap { width: 30px; flex: none; }
.ag-bubble { max-width: min(78%, 34rem); background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 7px 12px; min-width: 0; }
.ag-row.mine .ag-bubble { background: var(--grad); color: var(--on-accent, #fff); border-color: transparent; border-radius: 14px 14px 4px 14px; }
.ag-meta { display: flex; gap: 6px; align-items: baseline; font-size: 12px; margin-bottom: 2px; }
.ag-meta .pill { font-size: 10.5px; padding: 1px 7px; }
.ag-meta time { color: var(--muted); font-size: 11px; }
.ag-row.mine .ag-meta { justify-content: flex-end; }
.ag-row.mine .ag-meta time { color: inherit; opacity: .8; }
.ag-text { font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.ag-row.mine .ag-text a { color: inherit; }
.ag-del { align-self: center; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; padding: 2px 4px; opacity: 0; transition: opacity .15s; }
.ag-row:hover .ag-del, .ag-del:focus-visible { opacity: 1; }
.ag-del:hover { color: var(--danger); }
#ag-people { display: flex; flex-direction: column; gap: 8px; }
.ag-person { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.ag-person > span:nth-child(2) { flex: 1; min-width: 0; }
@media (max-width: 1000px) { .ag-space { grid-template-columns: 1fr; } }
.ag-system { align-self: center; margin: 10px 0 4px; font-size: 12.5px; color: var(--muted); background: var(--surface-2); border: 1px dashed var(--line); border-radius: 999px; padding: 3px 12px; text-align: center; }
.ag-system time { font-size: 11px; opacity: .8; margin-left: 4px; }
/* conversations : équipe + messages privés */
.ag-convos { display: flex; flex-direction: column; gap: 4px; }
.ag-convo { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 8px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ag-convo:hover { background: var(--surface-2); }
.ag-convo.on { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.ag-convo > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 14px; }
.ag-convo small { font-size: 11.5px; }
.ag-convo .pill { font-size: 11px; padding: 2px 8px; }
.ag-convo .nav-dot { margin-left: 0; }
.ag-hash { background: var(--surface-2); color: var(--accent); border: 1px solid var(--line); font-size: 15px; }
.tm-role { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.tm-role select { padding: 4px 8px; font-size: 13px; width: auto; }
/* réponse de l'IA transférée dans la discussion */
.ag-fwd { margin-top: 6px; background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.ag-fwd-head { font-size: 11.5px; font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.ag-fwd-body { max-width: none; font-size: 13.5px; }
.ag-fwd.long:not(.open) .ag-fwd-body { max-height: 220px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.ag-fwd-acts { display: flex; gap: 12px; margin-top: 4px; }
.ag-fwd-acts .linkish { font-size: 12.5px; }
.ag-row.mine .ag-fwd a { color: var(--accent); }
/* fenêtre de l'appli (confirmations, infos) */
.ask-dialog { width: min(480px, calc(100vw - 32px)); border: 1px solid var(--line); border-radius: 18px; padding: 0; background: var(--surface); color: var(--fg); box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.ask-dialog::backdrop { background: rgba(8, 5, 12, .6); backdrop-filter: blur(3px); }
.ask-dialog[open] { animation: ask-in .16s ease-out; }
@keyframes ask-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.ask-card { display: flex; flex-direction: column; gap: 14px; padding: 22px; }
.ask-card h2 { display: flex; align-items: center; gap: 12px; margin: 0; font-family: var(--font-display); font-size: 19px; line-height: 1.25; }
.ask-ico { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.ask-ico .i { width: 19px; height: 19px; }
.ask-ico.danger { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.ask-body { font-size: 14px; line-height: 1.5; color: var(--fg); }
.ask-body p { margin: 0 0 10px; } .ask-body p:last-child { margin-bottom: 0; }
.ask-body .small { font-size: 12.5px; }
.ask-perks { list-style: none; margin: 4px 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ask-perks li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.ask-perks li > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ask-perks small { color: var(--muted); font-size: 12.5px; }
.ask-perk-ico { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); }
.ask-perk-ico .i { width: 16px; height: 16px; }
#ask-input { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; color: var(--fg); font: inherit; }
#ask-input.bad { border-color: var(--danger); }
.ask-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
/* !important : themes.css impose le dégradé à tous les boutons principaux */
.ask-actions .btn-main.danger { background: #c92a2a !important; /* rouge franc : lisible en clair comme en sombre */ box-shadow: none !important; color: #fff !important; }
@media (max-width: 520px) { .ask-actions > * { flex: 1; } }
/* fenêtre « Envoyer à… » */
.fwd-dialog { width: min(560px, calc(100vw - 32px)); border: 1px solid var(--line); border-radius: 16px; padding: 18px; background: var(--surface); color: var(--fg); box-shadow: var(--shadow); }
.fwd-dialog::backdrop { background: rgba(0, 0, 0, .55); }
.fwd-preview { max-height: 240px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: var(--bg); }
.fwd-btn { display: inline-flex; align-items: center; gap: 6px; }
.copilot-out > .dl { margin-top: 10px; }
@media (hover: none) { .ag-del { opacity: .6; } }
/* Écran peu haut (≤ 860 px) sur ordinateur : menu de gauche resserré, tout tient sans défiler dans la plupart des cas. */
@media (max-height: 860px) and (min-width: 761px) {
  .side { gap: 12px; padding: 14px 12px; }
  .nav button { padding: 6px 12px; }
  .nav-label { margin: 8px 12px 2px; }
  .nav-label:first-child { margin-top: 0; }
  .agency-chip { margin-top: 4px; padding: 5px 10px; }
  .side-foot { gap: 6px; }
}
/* Téléphone (pas de barre latérale) : le nom de l'agence en petit au-dessus du titre de chaque page. */
@media (max-width: 760px) {
  .has-agency .viewbar { flex-wrap: wrap; }
  .has-agency .viewbar::before { content: var(--agency-name); flex-basis: 100%; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); margin-bottom: -6px; }
}


@media (max-width: 760px) {
  .co-cr-row { grid-template-columns: repeat(3, minmax(0, 1fr)) 30px; }
  .co-cr-row [data-f="chatter"] { grid-column: 1 / 3; }
  .co-cr-row [data-f="cost"] { grid-column: 3 / 4; }
  .co-cost-grid { grid-template-columns: 1fr 1fr; }
  .cf-two { grid-template-columns: 1fr; }
  .commit-acts { width: 100%; }
  .fm-grid li, .fm-team li { grid-template-columns: minmax(0, 1fr) 5rem auto; }
  .add .co-date { width: 100%; flex: 1 1 100%; }
}

/* =====================================================================
   STUDIO : le style des vidéos et du site (halos de couleur, grain, verre, titres plus affirmés).
   Préfixé par .studio (classe du <body>) pour passer devant themes.css. Suit la palette choisie.
   Pour revenir à l'ancien style : retirer class="studio" du <body> dans app.html.
   ===================================================================== */
.studio { --glass: color-mix(in srgb, var(--surface) 58%, transparent); --glass-strong: color-mix(in srgb, var(--surface) 78%, transparent); --glass-line: color-mix(in srgb, var(--fg) 11%, transparent); --ease: cubic-bezier(.2, .8, .2, 1); background: var(--bg); }
.studio .app, .studio .lock { position: relative; z-index: 1; }

/* fond animé */
.sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orb { position: absolute; width: 62vmax; height: 62vmax; border-radius: 50%; filter: blur(120px); opacity: .09; will-change: transform; }
.orb.o1 { background: var(--accent); left: -24vmax; top: -22vmax; animation: drift1 30s ease-in-out infinite alternate; }
.orb.o2 { background: var(--accent-2); right: -26vmax; top: 34vh; animation: drift2 36s ease-in-out infinite alternate; }
.orb.o3 { background: color-mix(in srgb, var(--accent) 50%, var(--accent-2)); left: 20vw; bottom: -44vmax; opacity: .06; animation: drift3 42s ease-in-out infinite alternate; }
:root[data-theme="dark"] .orb.o1 { opacity: .24; } :root[data-theme="dark"] .orb.o2 { opacity: .2; } :root[data-theme="dark"] .orb.o3 { opacity: .14; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .orb.o1 { opacity: .24; } :root:not([data-theme="light"]) .orb.o2 { opacity: .2; } :root:not([data-theme="light"]) .orb.o3 { opacity: .14; }
}
.sky .grain { position: absolute; inset: 0; opacity: .045; mix-blend-mode: overlay; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>"); }
@keyframes drift1 { to { transform: translate(16vw, 12vh) scale(1.08); } }
@keyframes drift2 { to { transform: translate(-14vw, -10vh) scale(.94); } }
@keyframes drift3 { to { transform: translate(12vw, -14vh) scale(1.06); } }

/* barre latérale et barre du haut en verre */
.studio .side { background: var(--glass); border-right: 1px solid var(--glass-line); backdrop-filter: blur(22px) saturate(1.3); }
.studio .side .nav button { border-radius: 13px; transition: background .2s, color .2s, transform .2s var(--ease); }
.studio .side .nav button:hover { transform: translateX(2px); }
.studio .side .nav button[aria-current="page"] { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, transparent), color-mix(in srgb, var(--accent-2) 12%, transparent)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent); }
.studio .viewbar { border-bottom: 1px solid var(--glass-line); background: color-mix(in srgb, var(--bg) 35%, transparent); backdrop-filter: blur(18px); }
.studio .viewbar h1 { font-size: 26px; font-weight: 800; letter-spacing: -.035em; }
.studio .bottomnav { background: var(--glass-strong) !important; backdrop-filter: blur(22px) saturate(1.3); border-top: 1px solid var(--glass-line) !important; }

/* cartes en verre */
.studio .card { background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(20px) saturate(1.25); border-radius: 22px; box-shadow: 0 18px 50px rgba(0, 0, 0, .12); }
.studio .card-head h2 { font-size: 19px; font-weight: 800; letter-spacing: -.025em; }
.studio .card-head h2 .hi { stroke: var(--accent); }

/* champs */
.studio .field input, .studio .field textarea, .studio textarea, .studio .add input {
  background: color-mix(in srgb, var(--fg) 4%, transparent); border: 1px solid var(--glass-line); border-radius: 13px; transition: border-color .2s, box-shadow .2s, background .2s;
}
.studio .field input:focus, .studio .field textarea:focus, .studio textarea:focus { background: color-mix(in srgb, var(--fg) 6%, transparent); box-shadow: 0 0 0 4px var(--accent-soft); }

/* boutons */
.studio .btn-main { border-radius: 14px; transition: transform .2s var(--ease), filter .2s, box-shadow .2s; }
.studio .btn-main:hover:not(:disabled) { transform: translateY(-1px); }
.studio .btn-ghost { background: var(--glass); border-color: var(--glass-line); backdrop-filter: blur(12px); border-radius: 13px; }
.studio .seg-mini, .studio .seg, .studio .auth-seg { background: color-mix(in srgb, var(--fg) 5%, transparent); border-color: var(--glass-line); }

/* conversation */
.studio .msg.ai .bubble { background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(16px); border-radius: 20px; padding: 16px 18px; }
.studio .msg.user .bubble { border-radius: 20px 20px 6px 20px; box-shadow: 0 12px 30px var(--accent-soft); }
.studio .bubble h3 { font-weight: 800; letter-spacing: -.02em; }

/* l'écran de connexion : on voit le fond animé */
.studio .lock-pitch { background: transparent; border-right-color: var(--glass-line); }
.studio .lock-pitch h2 { font-size: clamp(36px, 5vw, 62px); letter-spacing: -.045em; }
.studio .lock-card { background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(20px); border-radius: 26px; padding: 32px 26px; box-shadow: 0 30px 80px rgba(0, 0, 0, .18); }

/* chaque écran arrive en douceur (cartes en cascade) */
@keyframes cardIn { from { opacity: 0; transform: translateY(18px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.studio .view > main .card, .studio .view > main.scroll > .wrap > .card { animation: cardIn .6s var(--ease) both; }
.studio .view > main .wrap > :nth-child(2), .studio .view > main .cols > :nth-child(2) { animation-delay: .07s; }
.studio .view > main .wrap > :nth-child(3) { animation-delay: .14s; }
.studio .view > main .wrap > :nth-child(4) { animation-delay: .2s; }
.studio .viewbar { animation: cardIn .5s var(--ease) both; }

@media (prefers-reduced-motion: reduce) {
  .orb { animation: none !important; }
  .studio .view > main .card, .studio .viewbar { animation: none !important; }
}

/* ---------- Mémoire & veille : la mémoire en haut (grille), la veille en dessous (cartes sur 2 colonnes, filtres) ---------- */
.mv #mem-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.mv #mem-list .empty { grid-column: 1 / -1; }
.mv .mem { background: color-mix(in srgb, var(--fg) 4%, transparent); border-color: var(--glass-line, var(--line)); border-radius: 14px; padding: 12px 14px; }
.mv .mem p::before { content: "🧠"; margin-right: 8px; }
.mv #mem-form { max-width: 40rem; }
.mv #veille-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; align-items: start; }
.mv .vpt { background: color-mix(in srgb, var(--fg) 4%, transparent); border-color: var(--glass-line, var(--line)); border-radius: 16px; padding: 14px 16px; gap: 8px; }
.mv .vpt p { font-size: 14.5px; line-height: 1.5; }
.mv .vpt-meta b { font-size: 12.5px; }
.vfilter { display: flex; gap: 8px; flex-wrap: wrap; }
.vfilter:empty { display: none; }
.vfilter button { border: 1px solid var(--glass-line, var(--line)); background: color-mix(in srgb, var(--fg) 4%, transparent); color: var(--muted); border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.vfilter button small { margin-left: 4px; opacity: .7; }
.vfilter button:hover { color: var(--fg); }
.vfilter button[aria-pressed="true"] { background: var(--accent-soft); color: var(--fg); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }

/* ---------- Sélecteurs (menus déroulants, cases à cocher) : même style « verre » que le reste ---------- */
.studio select {
  -webkit-appearance: none; appearance: none; cursor: pointer; font-weight: 500;
  padding: 11px 42px 11px 14px; border-radius: 13px; border: 1px solid var(--glass-line);
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a59ab0' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>") no-repeat right 14px center / 16px,
              color-mix(in srgb, var(--fg) 4%, transparent);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.studio select:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--glass-line)); }
.studio select:focus { outline: none; border-color: color-mix(in srgb, var(--accent) 60%, transparent); box-shadow: 0 0 0 4px var(--accent-soft); }
.studio select:disabled { opacity: .55; cursor: not-allowed; }
.studio select option, .studio select optgroup { background: var(--surface); color: var(--fg); }
/* petits menus (filtres du trafic, rôle d'un membre) */
.studio .tr-filters select, .studio .tm-role select, .studio .viewbar select { padding: 7px 34px 7px 11px; font-size: 13px; border-radius: 10px; background-position: right 10px center, 0 0; background-size: 14px, auto; }

/* cases à cocher : des pastilles qu'on allume */
.studio .checks label {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px; border-radius: 999px; cursor: pointer; user-select: none;
  border: 1px solid var(--glass-line); background: color-mix(in srgb, var(--fg) 4%, transparent); font-weight: 500;
  transition: background .2s, border-color .2s, color .2s, transform .15s;
}
.studio .checks label:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--glass-line)); }
.studio .checks label:active { transform: scale(.97); }
.studio .checks label:has(input:checked) { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 55%, transparent); color: var(--fg); }
.studio input[type="checkbox"] {
  -webkit-appearance: none; appearance: none; flex: none; width: 18px; height: 18px; margin: 0; border-radius: 6px; cursor: pointer;
  border: 2px solid color-mix(in srgb, var(--fg) 32%, transparent); background: transparent; display: inline-grid; place-content: center;
  transition: background .15s, border-color .15s;
}
.studio input[type="checkbox"]::before { content: ""; width: 10px; height: 10px; transform: scale(0); transition: transform .15s cubic-bezier(.2, 1.6, .4, 1);
  background: var(--on-accent, #fff); clip-path: polygon(14% 44%, 0 59%, 40% 100%, 100% 22%, 86% 8%, 38% 70%); }
.studio input[type="checkbox"]:checked { background: var(--grad); border-color: transparent; }
.studio input[type="checkbox"]:checked::before { transform: scale(1); }
.studio input[type="checkbox"]:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--accent-soft); }
.studio .row .checks label { padding: 5px 11px; }

/* deux champs côte à côte : les zones de saisie restent alignées même si un libellé a une ligne de plus (« optionnel ») */
.studio .grid > .field:not(.span2) { justify-content: flex-end; }

/* ---------- Formation : progression de chaque chatter ---------- */
.fm-team li { display: block; }
.fm-who { width: 100%; display: flex; flex-direction: column; gap: 8px; text-align: left; cursor: pointer; font: inherit; color: inherit;
  padding: 14px 16px; border-radius: 16px; border: 1px solid var(--glass-line, var(--line)); background: color-mix(in srgb, var(--fg) 4%, transparent); transition: border-color .2s, background .2s, transform .2s; }
.fm-who:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); transform: translateY(-1px); }
.fm-who.on { border-color: color-mix(in srgb, var(--accent) 60%, transparent); background: var(--accent-soft); }
.fm-who-top { display: flex; align-items: center; gap: 10px; }
.fm-who-top strong { font-size: 15px; }
.fm-who-top > b { margin-left: auto; font-family: var(--font-display); font-size: 22px; }
.fm-who-top > b small { font-size: 12px; color: var(--muted); font-weight: 600; }
.fm-who small.muted { grid-column: auto; }
b.ok, .fm-scen span.ok b { color: var(--ok); } b.mid, .fm-scen span.mid b { color: var(--warn); } b.low, .fm-scen span.low b { color: var(--danger); }
.fm-delta { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.fm-delta.up { color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); }
.fm-delta.down { color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, transparent); }
.fm-spark { display: block; width: 100%; height: 44px; overflow: visible; }
.fm-spark.big { height: 130px; margin: 6px 0 4px; }
.fm-spark.empty { height: auto; font-size: 12px; color: var(--muted); }
.fm-line { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.fm-dot { fill: var(--surface); stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.fm-guide { stroke: color-mix(in srgb, var(--fg) 12%, transparent); stroke-dasharray: 4 5; vector-effect: non-scaling-stroke; }
.fm-hint { margin: 14px 0 0; text-align: center; }
.fm-prog { margin-top: 16px; padding: 18px; border-radius: 20px; border: 1px solid var(--glass-line, var(--line)); background: color-mix(in srgb, var(--fg) 3%, transparent); display: flex; flex-direction: column; gap: 10px; }
.fm-prog-head { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; align-items: flex-start; }
.fm-prog-head h3 { margin: 0; font-family: var(--font-display); font-size: 22px; letter-spacing: -.02em; }
.fm-prog-kpis { display: flex; gap: 18px; }
.fm-prog-kpis span { display: flex; flex-direction: column; align-items: flex-end; }
.fm-prog-kpis b { font-family: var(--font-display); font-size: 30px; line-height: 1; }
.fm-prog-kpis b.fm-delta { font-size: 24px; padding: 2px 10px; }
.fm-prog-kpis small { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.fm-prog .co-sub { margin: 10px 0 2px; display: flex; gap: 8px; align-items: baseline; }
.fm-crit { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.fm-crit li { display: grid; grid-template-columns: minmax(0, 11rem) 1fr 4.5rem; gap: 12px; align-items: center; font-size: 13.5px; }
.fm-crit li > span:first-child { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fm-crit b { text-align: right; font-size: 13.5px; display: flex; gap: 6px; justify-content: flex-end; align-items: center; }
.fm-crit b small { font-size: 11px; padding: 1px 6px; }
.fm-cbar { position: relative; height: 10px; border-radius: 99px; background: color-mix(in srgb, var(--fg) 8%, transparent); overflow: hidden; }
.fm-cbar i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); border-radius: 99px; }
.fm-cbar i.was { background: color-mix(in srgb, var(--fg) 22%, transparent); }
.fm-cbar i.now { background: var(--accent); height: 6px; top: 2px; }
.fm-cbar i.now.ok { background: var(--ok); } .fm-cbar i.now.mid { background: var(--warn); } .fm-cbar i.now.low { background: var(--danger); }
.fm-tag { font-style: normal; font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; }
.fm-tag.weak { color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, transparent); }
.fm-tag.strong { color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); }
.fm-scen { display: flex; flex-wrap: wrap; gap: 8px; }
.fm-scen span { display: flex; flex-direction: column; padding: 9px 12px; border-radius: 14px; border: 1px solid var(--glass-line, var(--line)); background: color-mix(in srgb, var(--fg) 4%, transparent); }
.fm-scen span b { font-size: 13px; }
.fm-scen span small { font-size: 11.5px; color: var(--muted); }
.fm-scen span.todo { border-style: dashed; opacity: .75; }
.fm-scen span.todo b { color: var(--muted); }
.fm-next { display: flex; gap: 12px; align-items: flex-start; margin-top: 6px; padding: 14px; border-radius: 16px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.fm-next .i { width: 20px; height: 20px; stroke: var(--accent); flex: none; margin-top: 2px; }
.fm-next b { font-size: 14px; }
.fm-next p { margin: 4px 0 0; font-size: 14px; }
@media (max-width: 760px) { .fm-crit li { grid-template-columns: minmax(0, 1fr) 6rem 4rem; } }

/* Mon agence : progression à droite de la discussion */
.ag-prog-card { gap: 12px; }
.ag-prog-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ag-prog-top > span:first-child { display: flex; align-items: baseline; gap: 6px; }
.ag-prog-top b { font-family: var(--font-display); font-size: 34px; line-height: 1; }
.ag-prog-top small { color: var(--muted); font-size: 12px; }
.fm-crit.compact li { grid-template-columns: minmax(0, 10.5rem) 1fr 3rem; gap: 10px; font-size: 13px; }
.fm-crit.compact li > span:first-child { flex-wrap: nowrap; white-space: nowrap; }
.ag-prog-card .actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ag-prog-card .fm-spark.big { height: 80px; }

/* Liens & trafic : un seul bouton de création à la fois (formulaire ouvert -> aucun ; aucun lien -> celui de la liste vide) */
#view-trafic:has(#tr-create-card:not([hidden])) #tr-new,
#view-trafic:has(#tr-create-card:not([hidden])) .tr-empty [data-tr="new"],
#view-trafic:has(.tr-empty) #tr-new { display: none; }

/* ---------- Liens & trafic : pages de liens (à mettre en bio) ---------- */
#tr-pages-card .card-head .muted.small { flex: 1 1 auto; }
.pg-items { display: flex; flex-direction: column; gap: 10px; }
.pg-item { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; border: 1px solid var(--glass-line, var(--line)); background: color-mix(in srgb, var(--fg) 4%, transparent); flex-wrap: wrap; }
.pg-mini, .pg-ph { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 20px; }
.pg-mini img, .pg-ph img { width: 100%; height: 100%; object-fit: cover; }
.pg-main { flex: 1 1 14rem; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pg-main code { font-size: 12.5px; color: var(--accent); overflow-wrap: anywhere; }
.pg-acts { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pg-acts a.btn-ghost { text-decoration: none; color: inherit; display: inline-flex; align-items: center; }
.pg-form { display: flex; flex-direction: column; gap: 14px; padding: 16px; border-radius: 18px; border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); background: color-mix(in srgb, var(--accent) 5%, transparent); }
.pg-slug { display: flex; align-items: center; border: 1px solid var(--glass-line, var(--line)); border-radius: 13px; background: color-mix(in srgb, var(--fg) 4%, transparent); padding-left: 12px; overflow: hidden; }
.pg-slug .muted { font-size: 13px; font-weight: 500; white-space: nowrap; }
.pg-slug input { border: 0 !important; background: transparent !important; flex: 1; min-width: 0; padding-left: 2px !important; box-shadow: none !important; }
.pg-slug input[readonly] { color: var(--muted); }
.pg-photo { display: flex; align-items: center; gap: 12px; }
.pg-accents { display: flex; gap: 8px; flex-wrap: wrap; }
.pg-accents button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; }
.pg-accents button[aria-pressed="true"] { border-color: var(--fg); box-shadow: 0 0 0 3px var(--accent-soft); }
.pg-buttons { display: flex; flex-direction: column; gap: 8px; }
.pg-btn { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.pg-btn input { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--glass-line, var(--line)); background: color-mix(in srgb, var(--fg) 4%, transparent); font: inherit; color: inherit; }
.pg-move { display: flex; gap: 4px; }
.pg-move button { width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--glass-line, var(--line)); background: transparent; color: var(--muted); cursor: pointer; }
.pg-move button:hover:not(:disabled) { color: var(--fg); border-color: var(--accent); }
.pg-move button:disabled { opacity: .35; cursor: default; }
@media (max-width: 760px) { .pg-btn { grid-template-columns: 1fr auto; } .pg-btn select { grid-column: 1 / -1; grid-row: 2; } }

/* ---------- Paramètres : extension navigateur ---------- */
.ext-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.ext-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.ext-steps li::marker { color: var(--accent); font-weight: 700; }
.ext-steps .btn-main { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; margin-right: 6px; }
.ext-steps code { padding: 1px 6px; border-radius: 6px; background: color-mix(in srgb, var(--fg) 8%, transparent); font-size: 12.5px; }
.ext-key { padding: 14px; border-radius: 16px; border: 1px solid var(--glass-line, var(--line)); background: color-mix(in srgb, var(--fg) 3%, transparent); display: flex; flex-direction: column; gap: 10px; }
.ext-token { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.ext-token code { flex: 1; min-width: 0; overflow-wrap: anywhere; padding: 9px 11px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--fg); font-size: 12.5px; }
@media (max-width: 760px) { .ext-grid { grid-template-columns: 1fr; } }

/* ---------- Velora dans OnlyFans (bouton favori + extension) ---------- */
.nav-new { margin-left: auto; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; background: var(--grad); color: var(--on-accent, #fff); }
.xh-promo { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin-bottom: 14px; border-radius: 16px; cursor: pointer; text-align: left; font: inherit; color: var(--fg);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); background: linear-gradient(110deg, color-mix(in srgb, var(--accent) 16%, transparent), color-mix(in srgb, var(--accent-2, var(--accent)) 10%, transparent)); transition: transform .15s; }
.xh-promo:hover { transform: translateY(-1px); }
.xh-promo .i { width: 22px; height: 22px; flex: none; color: var(--accent); }
.xh-promo span { flex: 1; font-size: 13.5px; } .xh-promo em { font-style: normal; font-weight: 700; color: var(--accent); white-space: nowrap; }
.xh-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; overflow: hidden; }
.xh-text h2 { margin: 10px 0 14px; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.15; letter-spacing: -.02em; }
.xh-flow { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.xh-flow li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; }
.xh-flow b { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 13px; background: var(--grad); color: var(--on-accent, #fff); }
.xh-flow em { font-style: normal; font-weight: 700; color: var(--accent); }
kbd { display: inline-block; padding: 1px 7px; border-radius: 6px; border: 1px solid var(--line); border-bottom-width: 2px; background: color-mix(in srgb, var(--fg) 6%, transparent); font: 600 12px/1.5 system-ui, sans-serif; color: var(--fg); }
.xh-demo { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 12px; align-items: center; }
.xd-chat { min-height: 290px; border-radius: 18px; padding: 12px; background: color-mix(in srgb, var(--fg) 4%, transparent); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 7px; }
.xd-top { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 13px; }
.xd-top small { color: var(--ok, #22c55e); font-size: 11px; }
.xd-av { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, #8ab4ff, #9d9d9c); }
.xd-b { margin: 0; max-width: 78%; padding: 7px 11px; border-radius: 14px; font-size: 12.5px; }
.xd-b.fan { background: color-mix(in srgb, var(--fg) 8%, transparent); border-bottom-left-radius: 4px; }
.xd-b.me { margin-left: auto; background: var(--grad); color: var(--on-accent, #fff); border-bottom-right-radius: 4px; }
.xd-input { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); font-size: 12px; min-height: 36px; }
.xd-typed { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.xd-panel { padding: 12px; border-radius: 16px; color: #f6f1f5; background: rgba(18,13,21,.96); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 20px 50px rgba(0,0,0,.35); font-size: 11.5px; }
.xd-ph { display: flex; align-items: center; gap: 7px; font-weight: 800; font-size: 12px; margin-bottom: 8px; }
.xd-ph span { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; background: linear-gradient(135deg,#8c8c8b,#888887); font-size: 11px; }
.xd-panel dl { margin: 0 0 8px; display: grid; grid-template-columns: auto 1fr; gap: 3px 8px; padding: 8px; border-radius: 10px; background: rgba(136, 136, 135, .14); }
.xd-panel dt { color: rgba(255,255,255,.55); } .xd-panel dd { margin: 0; font-weight: 600; }
.xd-opt { margin-top: 6px; padding: 7px 9px; border-radius: 9px; background: rgba(255,255,255,.06); border-left: 3px solid #979796; }
.xd-opt.dim { opacity: .55; border-left-color: #9d9d9c; }
/* l'animation : la réponse choisie s'écrit dans le chat, puis part */
.xd-opt:not(.dim) { animation: xdpick 7s infinite; }
.xd-typed { animation: xdtype 7s infinite; } .xd-input kbd { animation: xdkey 7s infinite; }
.xd-new { animation: xdsent 7s infinite; }
@keyframes xdpick { 0%, 25% { box-shadow: none; } 30%, 45% { box-shadow: 0 0 0 2px #979796; background: rgba(151, 151, 150, .18); } 55%, 100% { box-shadow: none; } }
@keyframes xdtype { 0%, 33% { opacity: 0; } 38%, 66% { opacity: 1; } 70%, 100% { opacity: 0; } }
@keyframes xdkey { 0%, 55% { transform: none; } 60% { transform: translateY(2px); background: var(--accent); color: var(--on-accent, #fff); } 64%, 100% { transform: none; } }
@keyframes xdsent { 0%, 66% { opacity: 0; transform: translateY(8px); } 72%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .xd-opt, .xd-typed, .xd-input kbd, .xd-new { animation: none; } .xd-typed { opacity: 1; } }
.xe-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.xe-step { position: relative; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding: 18px 16px 16px; border-radius: 18px;
  border: 1px solid var(--glass-line, var(--line)); background: color-mix(in srgb, var(--fg) 3%, transparent); }
.xe-step > b { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-size: 14px; background: var(--grad); color: var(--on-accent, #fff); }
.xe-step h3 { margin: 2px 0 0; font-size: 15px; }
.xe-step p { margin: 0; flex: 1; }
.xe-step .btn-main, .xe-step .btn-ghost { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; margin-top: 4px; }
.xe-note { margin-top: 12px; }
.xe-store { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.xe-store .btn-main { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 15px; padding: 13px 22px; }
.xe-store span { flex: 1; min-width: 220px; }
.xe-done { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; background: color-mix(in srgb, var(--ok, #22c55e) 10%, transparent); border: 1px solid color-mix(in srgb, var(--ok, #22c55e) 35%, transparent); }
.xe-done > .i { width: 30px; height: 30px; flex: none; color: var(--ok, #22c55e); }
.xe-done div { display: flex; flex-direction: column; gap: 3px; }
.xh-install .actions { margin-top: 14px; }
@media (max-width: 900px) { .xh-hero, .xe-steps { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .xh-demo { grid-template-columns: minmax(0, 1fr); } .xd-panel { display: none; } }
.xh-promo[hidden] { display: none; }
.nav button.locked .nav-new { background: none; border: 1px solid var(--line); color: var(--muted); }
.nav button.locked:has(.nav-new:not([hidden]))::after { margin-left: 6px; }

/* ---------- Plus d'air : Ma semaine (accompagnement) et la barre de gauche ---------- */
.nav { gap: 3px; }
.nav button { padding: 10px 13px; gap: 13px; }
.nav-label { margin: 22px 13px 7px; }
.nav-label:first-child { margin-top: 6px; }
@media (max-height: 860px) and (min-width: 761px) {
  .nav button { padding: 8px 13px; }
  .nav-label { margin: 16px 13px 5px; }
}
.co-week { padding: 26px 28px; gap: 16px; }
.co-week .co-nudge { margin-bottom: 4px; }
.co-week-top { gap: 18px; }
.co-week-main { gap: 10px; }
.co-week-meta h2 { font-size: 26px; }
.co-focus { font-size: 15.5px; line-height: 1.6; max-width: 62ch; }
.co-week .bar { height: 10px; margin-top: 4px; }
#co-progress { margin-top: -4px; }
@media (min-width: 1100px) {
  .co-pane[data-pane="semaine"]:not([hidden]) { column-gap: 26px; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
  .co-pane[data-pane="semaine"] > :not([hidden]) { margin-bottom: 26px; }
  .co-pane[data-pane="semaine"] > #co-commit-card, .co-pane[data-pane="semaine"] > #co-alerts { position: relative; }
}
#co-tasks-card, #co-commit-card { padding: 24px 26px; }
#co-tasks-card .card-head, #co-commit-card .card-head { margin-bottom: 16px; }
#co-tasks { gap: 12px; }
.task { gap: 14px; padding: 16px 18px; border-radius: 16px; background: color-mix(in srgb, var(--fg) 3%, var(--bg)); transition: border-color .15s, transform .15s; }
.task:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.task input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.task-txt { gap: 7px; }
.task-txt span { font-size: 15px; font-weight: 600; line-height: 1.45; }
.task-txt small { font-size: 12.5px; line-height: 1.6; }
.task-txt small b { display: inline-block; padding: 1px 9px; margin-right: 2px; border-radius: 999px; font-size: 11.5px; background: var(--accent-soft); }
.task .how { margin-top: 2px; }
.task .how p { margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--fg) 4%, transparent); }
#co-add, #co-commit-add { margin-top: 16px; }
#co-commits { display: flex; flex-direction: column; gap: 10px; }
#co-commit-card .card-head .muted { flex-basis: 100%; margin-top: 4px; }
.co-week .bar { background: color-mix(in srgb, var(--fg) 10%, transparent); }
#co-commits .empty { margin: 0; padding: 4px 0 0; }
/* Offres : titres courts, « Nouveau » et « Bientôt » */
.feat li > small { display: block; margin-top: 2px; font-size: 11.5px; line-height: 1.4; color: var(--muted); }
.feat li.soon { color: var(--muted); }
.feat li.soon::before { content: "✦"; font-size: 10px; top: 2px; color: var(--muted); }
.tag-new, .tag-soon { display: inline-block; margin-left: 4px; padding: 0 7px; border-radius: 999px; font-size: 9.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; vertical-align: 1px; text-decoration: none; }
.tag-new { color: var(--on-accent, #fff); background: var(--grad); }
.tag-soon { color: var(--muted); border: 1px solid var(--line); }
.nav button.locked:has(.nav-new:not([hidden]))::after { content: none; }

/* ---------- Avis client ---------- */
.rv-pick { display: flex; align-items: center; gap: 4px; margin: 14px 0 6px; }
.rv-pick button { border: 0; background: none; cursor: pointer; font-size: 30px; line-height: 1; padding: 2px; color: color-mix(in srgb, var(--fg) 18%, transparent); transition: color .15s, transform .15s; }
.rv-pick button:hover, .rv-pick button:hover ~ button { transform: none; }
.rv-pick:hover button { color: var(--gold, #f5b942); }
.rv-pick button:hover ~ button { color: color-mix(in srgb, var(--fg) 18%, transparent); }
.rv-pick button.on { color: var(--gold, #f5b942); }
.rv-pick button.pop { animation: rvPop .35s ease-out; }
@keyframes rvPop { 50% { transform: scale(1.35) rotate(-8deg); } }
.rv-pick span { margin-left: 10px; }
.rv-stars { letter-spacing: 2px; color: color-mix(in srgb, var(--fg) 25%, transparent); }
.rv-stars.on { color: var(--gold, #f5b942); }
.rv-mine { padding: 16px 18px; border-radius: 16px; background: color-mix(in srgb, var(--fg) 4%, transparent); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.rv-mine p { margin: 0; font-size: 15px; line-height: 1.55; }
.rv-card .actions { margin-top: 14px; }
.rv-card .check { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13.5px; }
.rv-adm { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.rv-adm p { margin: 6px 0 0; font-size: 14px; }
.rv-adm.off { opacity: .55; }
.rv-adm .actions { flex: none; align-items: flex-start; }

/* ---------- Avis : bien en évidence ---------- */
.rv-side { display: flex; align-items: center; gap: 9px; width: 100%; padding: 10px 13px; border-radius: 12px; cursor: pointer; font: inherit; font-weight: 700; font-size: 13.5px; color: var(--fg);
  border: 1px solid color-mix(in srgb, var(--gold, #f5b942) 45%, transparent); background: linear-gradient(110deg, color-mix(in srgb, var(--gold, #f5b942) 16%, transparent), transparent); transition: transform .15s; }
.rv-side:hover { transform: translateY(-1px); }
.rv-side-stars { color: var(--gold, #f5b942); font-size: 16px; animation: rvTwinkle 2.4s ease-in-out infinite; }
@keyframes rvTwinkle { 0%, 70%, 100% { transform: none; } 80% { transform: scale(1.3) rotate(15deg); } 90% { transform: scale(1) rotate(-8deg); } }
.rv-nudge { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: min(340px, calc(100vw - 32px)); padding: 18px 18px 16px; border-radius: 20px;
  background: var(--surface); border: 1px solid color-mix(in srgb, var(--gold, #f5b942) 40%, var(--line)); box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
  display: flex; flex-direction: column; gap: 8px; animation: rvNudgeIn .5s cubic-bezier(.2, .9, .3, 1.2) both; }
.rv-nudge[hidden] { display: none; }
@keyframes rvNudgeIn { from { opacity: 0; transform: translateY(24px) scale(.96); } }
.rv-nudge b { font-size: 15.5px; }
.rv-nudge p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.rv-nudge-stars { display: flex; gap: 3px; font-size: 22px; color: var(--gold, #f5b942); }
.rv-nudge-stars i { font-style: normal; animation: rvStarIn .45s cubic-bezier(.3, 1.6, .5, 1) both; }
.rv-nudge-stars i:nth-child(2) { animation-delay: .08s; } .rv-nudge-stars i:nth-child(3) { animation-delay: .16s; }
.rv-nudge-stars i:nth-child(4) { animation-delay: .24s; } .rv-nudge-stars i:nth-child(5) { animation-delay: .32s; }
@keyframes rvStarIn { from { opacity: 0; transform: scale(0) rotate(-40deg); } }
.rv-nudge-acts { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.rv-nudge-x { position: absolute; top: 8px; right: 10px; border: 0; background: none; color: var(--muted); font-size: 20px; cursor: pointer; line-height: 1; }
@media (max-width: 760px) { .rv-nudge { right: 16px; bottom: 84px; } }
.rv-card.rv-flash { animation: rvFlash 1.6s ease-out; }
@keyframes rvFlash { 0%, 100% { box-shadow: none; } 20%, 60% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold, #f5b942) 70%, transparent), 0 20px 50px color-mix(in srgb, var(--gold, #f5b942) 25%, transparent); } }
@media (prefers-reduced-motion: reduce) { .rv-side-stars, .rv-nudge, .rv-nudge-stars i, .rv-card.rv-flash { animation: none; } }
.rv-nudge { top: 96px; bottom: auto; }
@keyframes rvNudgeIn { from { opacity: 0; transform: translateY(-18px) scale(.96); } }
@media (max-width: 760px) { .rv-nudge { top: auto; bottom: 84px; } }

/* ---------- comptes OnlyFans connectés ---------- */
.of-card #of-list { display: flex; flex-direction: column; gap: 12px; margin: 14px 0 6px; }
.of-acc { padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: color-mix(in srgb, var(--fg) 3%, transparent); display: flex; flex-direction: column; gap: 10px; }
.of-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.of-head b { font-size: 15px; }
.of-acts { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.of-total { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.of-total small { color: var(--muted); }
.of-total strong { font-family: var(--font-display); font-size: 26px; letter-spacing: -.02em; }
.of-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.of-items span { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 10px; background: color-mix(in srgb, var(--fg) 4%, transparent); }
.of-items small { color: var(--muted); font-size: 11.5px; }
.of-form { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.of-form .check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }

.of-upd { display: flex; gap: 8px; }
.of-paste { display: flex; flex-direction: column; gap: 8px; }
.of-paste textarea { width: 100%; min-height: 110px; }
.creator-item .cr-of { display: block; margin-top: 3px; color: var(--fg); }
.creator-item .cr-of strong { color: var(--ok, #22c55e); }
.of-upd { align-items: center; flex-wrap: wrap; }
.of-sync { font-size: 12.5px; color: var(--muted); }
.of-sync.on { color: var(--ok, #22c55e); font-weight: 600; }
.of-sync.warn { color: var(--warn, #f59e0b); font-weight: 600; }
.of-next { padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 7%, transparent); border: 1px dashed color-mix(in srgb, var(--accent) 35%, transparent); font-size: 13.5px; }
.of-next ol { margin: 8px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--muted); }
.of-next li b { color: var(--fg); }
.of-next .btn-ghost { display: inline-flex; margin-left: 6px; text-decoration: none; vertical-align: middle; }
.step-n { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 10px; border-radius: 9px; font-size: 13px; font-weight: 800; background: var(--grad); color: var(--on-accent, #fff); vertical-align: 2px; }
.cr-of-link { margin: 10px 0 0; }

/* ---------- « Comment ça marche » en haut de chaque onglet ---------- */
.guide { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; max-width: 72rem; margin: 18px auto 0; padding: 14px 18px; border-radius: 18px;
  background: linear-gradient(110deg, color-mix(in srgb, var(--accent) 10%, transparent), color-mix(in srgb, var(--accent-2, var(--accent)) 6%, transparent));
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); width: calc(100% - 32px); }
.guide[hidden] { display: none; }
.guide-t { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
.guide ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 16px; flex: 1; min-width: 0; }
.guide li { flex: 1; display: flex; gap: 9px; align-items: flex-start; font-size: 13.5px; line-height: 1.4; min-width: 0; }
.guide li span { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; font-weight: 800; background: var(--grad); color: var(--on-accent, #fff); }
.guide-x { white-space: nowrap; }
.guide-open { margin-top: 6px; font-size: 12.5px; }
@media (max-width: 900px) { .guide ol { flex-direction: column; gap: 8px; } }
.guide { margin-bottom: 8px; }
.nav-new[hidden] { display: none; }

/* ---------- « Ton offre : comment ça marche » ---------- */
.pg-modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; background: rgba(8, 5, 12, .72); backdrop-filter: blur(8px); animation: pgIn .25s ease-out; }
@keyframes pgIn { from { opacity: 0; } }
.pg-card { position: relative; width: min(860px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 26px 28px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 40px 100px rgba(0,0,0,.5); }
.pg-x { position: absolute; top: 14px; right: 16px; border: 0; background: none; color: var(--muted); font-size: 26px; cursor: pointer; line-height: 1; }
.pg-kicker { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.pg-card h2 { margin: 4px 0 14px; font-size: 26px; }
.pg-card h3 { margin: 20px 0 10px; font-size: 16px; }
.pg-video { width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; background: #0b0710; border: 1px solid var(--line); }
.pg-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pg-list li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--fg) 3%, transparent); border: 1px solid var(--line); }
.pg-list li > div { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.pg-list small { color: var(--muted); font-size: 12.5px; }
.pg-how { font-size: 12.5px; color: var(--fg); opacity: .85; }
.pg-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.plan-video-row { margin: 4px 0 12px; }
.pg-vwrap { position: relative; }
.pg-sound { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 12px 22px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: rgba(14,9,18,.85); color: #fff; font: 700 15px var(--font-body); cursor: pointer; box-shadow: 0 14px 40px rgba(0,0,0,.45); backdrop-filter: blur(10px); }
.pg-sound:hover { background: rgba(28, 28, 27, .92); }


/* ---------- Paramètres : rubriques à gauche (un sujet par rubrique), cartes à droite ---------- */
.set-stack { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 22px; align-items: start; }
.set-tabs { position: sticky; top: 0; display: flex; flex-direction: column; gap: 2px; padding: 6px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.set-tabs button { display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 11px; border: 0; border-radius: 11px; background: transparent; color: var(--muted); font: 600 13.5px var(--font-body); text-align: left; cursor: pointer; transition: background .12s, color .12s; }
.set-tabs button .i { width: 17px; height: 17px; flex: none; }
.set-tabs button span { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.set-tabs button small { font-size: 11.5px; font-weight: 500; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.set-tabs button:hover { background: var(--surface-2); color: var(--fg); }
.set-tabs button[aria-selected="true"] { background: var(--accent-soft); color: var(--fg); }
.set-tabs button[aria-selected="true"] .i { stroke: var(--accent); color: var(--accent); }
.set-tabs button[hidden] { display: none; }
.set-body { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.set-body > [data-set]:not(.set-on) { display: none; }
.set-lead { margin: -6px 0 0; }
@media (max-width: 1000px) {
  .set-stack { grid-template-columns: 1fr; gap: 14px; }
  .set-tabs { position: sticky; top: 0; z-index: 3; flex-direction: row; overflow-x: auto; scrollbar-width: none; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(12px); }
  .set-tabs::-webkit-scrollbar { display: none; }
  .set-tabs button { width: auto; flex: 0 0 auto; padding: 9px 13px; }
  .set-tabs button small { display: none; }
}
.set-sub { margin: 22px 0 10px; font-family: var(--font-display); font-size: 16px; }
.plan-sum { display: flex; align-items: center; gap: 12px; }
.plan-sum > #sub-box { flex: 1; min-width: 0; }
.plan-sum > #sub-box > * { margin: 0; }
.plan-sum > #plan-video { flex: none; }
.usage { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.usage-tile { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); cursor: help; }
.ut-label { font-size: 13px; font-weight: 700; color: var(--muted); }
.ut-num { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ut-num b { font-family: var(--font-display); font-size: 24px; color: var(--fg); letter-spacing: -.02em; }
.ut-num small { margin-left: 6px; font-size: 12px; }
.ut-day { font-size: 12px; color: var(--muted); }
.usage > .usage-note { grid-column: 1 / -1; margin: 2px 0 0; }
.plan .feat li.more { padding-left: 0; font-weight: 700; color: var(--muted); font-size: 12.5px; }
.plan .feat li.more::before { content: none; }
@media (max-width: 760px) { .plan-sum { flex-direction: column; align-items: stretch; } }
@media (max-width: 760px) { .usage { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ut-num b { font-size: 21px; } }


/* ==================== Disposition des onglets ==================== */
/* bandeau « Comment ça marche » : plus fin */
.guide { padding: 10px 16px; gap: 14px; margin-top: 14px; }
.guide li { font-size: 13px; }
.guide-t { font-size: 11px; }

/* Assistant IA : les 4 suggestions sur une ligne */
.intro .chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.intro .chips .chip { height: 100%; }
@media (max-width: 1100px) { .intro .chips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Scripts PPV et Réponses fans : la colonne des résultats reste sous les yeux */
@media (min-width: 1000px) {
  #view-scripts .cols > :last-child, #view-copilot .cols > :last-child { position: sticky; top: 12px; align-self: start; max-height: calc(100vh - 140px); overflow: auto; }
}

/* Mémoire & veille : côte à côte */
.mv-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 1000px) { .mv-grid { grid-template-columns: 1fr; } }

/* Prospection : deux colonnes, l'action sur toute la largeur */
.p-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 28px; }
.p-two > .p-col { align-content: start; }
.p-two > .p-actions { grid-column: 1 / -1; padding-top: 14px; border-top: 1px solid var(--line); }
@media (max-width: 900px) { .p-two { grid-template-columns: 1fr; } }

/* Formation : l'historique ne s'étire plus sur toute la page */
#fm-history { max-height: 440px; overflow: auto; padding-right: 4px; }

/* Mon agence : les conversations juste à côté de la discussion, puis l'équipe, puis la progression */
.ag-space > .stack { display: flex; flex-direction: column; }
.ag-space > .stack > #ag-people-card { order: -2; }
.ag-space > .stack > #ag-prog-card { order: 2; }
@media (min-width: 1000px) { .ag-space > .ag-chat { position: sticky; top: 12px; align-self: start; } }
@media (max-width: 760px) {
  .guide { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 14px; position: relative; }
  .guide ol { flex-direction: column; gap: 8px; }
  .guide li { flex: none; }
  .guide > :last-child:not(ol) { position: absolute; top: 10px; right: 12px; }
}


/* =====================================================================
   ÉPURÉ : un outil de travail sobre (fond uni, cartes plates, bordures fines, peu de dégradés).
   Préfixé par body.epure pour passer devant la couche « studio ». Retirer « epure » du <body> pour revenir.
   ===================================================================== */
body.epure { background: var(--bg); }
body.epure .sky { display: none; }
body.epure .view > main .card, body.epure .view > main.scroll > .wrap > .card, body.epure .viewbar { animation: none; }

/* menu */
body.epure .side { background: var(--bg); border-right: 1px solid var(--line); backdrop-filter: none; }
body.epure .side .nav button { border-radius: 8px; padding: 8px 10px; font-size: 14px; gap: 11px; }
body.epure .side .nav button:hover { transform: none; background: color-mix(in srgb, var(--fg) 5%, transparent); }
body.epure .side .nav button[aria-current="page"] { background: color-mix(in srgb, var(--fg) 8%, transparent); box-shadow: none; color: var(--fg); font-weight: 600; }
body.epure .side .nav button[aria-current="page"] svg { stroke: var(--accent); }
body.epure .nav-label { font-size: 11px; letter-spacing: .1em; }

/* en-tête de page */
body.epure .viewbar { background: var(--bg); backdrop-filter: none; border-bottom: 1px solid var(--line); padding-block: 16px; }
body.epure .viewbar h1 { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
body.epure .viewbar p.muted { font-size: 13px; margin-top: 2px; }

/* cartes */
body.epure .card { background: var(--surface); border: 1px solid var(--line); backdrop-filter: none; border-radius: 12px; box-shadow: none; padding: 18px; }
body.epure .card-head h2 { font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; }
body.epure .card-head h2 .hi { stroke: var(--muted); }
body.epure .co-week, body.epure .co-palier { background: var(--surface); }

/* champs */
body.epure .field input, body.epure .field textarea, body.epure .field select, body.epure textarea, body.epure .add input, body.epure select, body.epure input[type="text"], body.epure input[type="number"], body.epure input[type="search"], body.epure input[type="email"], body.epure input[type="password"] {
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px; box-shadow: none; backdrop-filter: none; }
body.epure .field input:focus, body.epure .field textarea:focus, body.epure textarea:focus, body.epure select:focus, body.epure input:focus { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); box-shadow: 0 0 0 3px var(--accent-soft); outline: none; }

/* boutons */
body.epure .btn-main { background: var(--accent); background-image: none; border-radius: 8px; box-shadow: none; font-weight: 600; }
body.epure .btn-main:hover:not(:disabled) { transform: none; filter: brightness(1.08); }
body.epure .btn-ghost { background: transparent; border: 1px solid var(--line); border-radius: 8px; backdrop-filter: none; }
body.epure .btn-ghost:hover { background: color-mix(in srgb, var(--fg) 5%, transparent); }
body.epure .seg-mini, body.epure .seg { border-radius: 9px; }

/* bulles de discussion */
body.epure .msg.ai .bubble { background: var(--surface); border: 1px solid var(--line); backdrop-filter: none; border-radius: 12px; }
body.epure .msg.user .bubble { border-radius: 12px 12px 4px 12px; box-shadow: none; }

/* bandeau « Comment ça marche » : neutre */
body.epure .guide { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
body.epure .guide li span { background: var(--accent-soft); color: var(--accent); }

/* étiquettes et puces */
body.epure .tag, body.epure .chips-row button, body.epure .chips-row .tag { border-radius: 6px; }

/* ---------- Prospection : panneau de filtres ---------- */
.pf { display: grid; gap: 0; }
.pf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 22px; }
.pf-f { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.pf-niche { grid-column: span 2; }
.pf-plat { grid-column: span 2; }
.pf-l { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 0; }
.pf-l small { text-transform: none; letter-spacing: 0; font-weight: 500; margin-left: 4px; }
.pf-f input[type="text"], .pf-f input[type="number"], .pf-f select { width: 100%; height: 38px; padding: 0 11px; font-size: 14px; }
.pf-range { display: flex; align-items: center; gap: 8px; }
.pf-range span { color: var(--muted); font-size: 13px; }
.pf-c { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--fg); cursor: pointer; }
.pf-c input { width: 16px; height: 16px; accent-color: var(--accent); margin: 0; }
.pf-plat .plat-checks { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-plat .plat-checks label { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); font-size: 14px; cursor: pointer; }
.pf-plat .plat-checks label:has(input:checked) { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); background: var(--accent-soft); }
.pf-plat .plat-checks input { accent-color: var(--accent); margin: 0; }
.pf-plat small { font-size: 12px; }
.pf-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.pf-note { flex: 1 1 260px; margin: 0; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.pf-note .i { flex: none; width: 16px; height: 16px; }
.pf-foot #preset-name { width: 170px; height: 36px; padding: 0 10px; font-size: 13.5px; }
.pf-foot #p-run { height: 38px; padding: 0 20px; }
@media (max-width: 1000px) { .pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pf-niche, .pf-plat { grid-column: 1 / -1; } }
@media (max-width: 600px) { .pf-grid { grid-template-columns: 1fr; } .pf-foot #preset-name { flex: 1; width: auto; } .pf-foot #p-run { width: 100%; } }

.pf-spacer { flex: 1; }
body.epure .btn-main { background: var(--grad) !important; color: var(--on-accent, var(--accent-ink)) !important; }
body.epure .intro .quick button:first-child { background: var(--accent-soft) !important; color: var(--fg) !important; border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)) !important; box-shadow: none !important; }
body.epure .intro .quick button:first-child span { color: var(--muted) !important; }
body.epure .agency-chip { background: transparent; border: 1px solid var(--line); border-radius: 8px; color: var(--fg); }
body.epure .agency-chip svg { stroke: var(--muted); }


/* ---------- Tableau de bord ---------- */
.db { display: grid; gap: 16px; padding-block: 18px 40px; }
.db-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.db-kpi { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; text-align: left; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); cursor: pointer; transition: border-color .2s; }
.db-kpi:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.db-kpi-l { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.db-kpi-l .i { width: 16px; height: 16px; }
.db-kpi b { font-family: var(--font-display); font-size: 28px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.db-kpi small { font-size: 12.5px; color: var(--muted); }
.db-kpi.off b { font-size: 22px; }
.db-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.db-card .card-head { margin-bottom: 8px; }
.db-body { display: flex; flex-direction: column; }
.db-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.db-row:first-child, .db-bar + .db-row { border-top: 0; }
.db-av { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: color-mix(in srgb, var(--fg) 8%, transparent); }
.db-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.db-main b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-main small { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-val { font-variant-numeric: tabular-nums; font-size: 14.5px; }
.db-val.ok { color: var(--ok); } .db-val.mid { color: var(--warn); } .db-val.low { color: var(--danger); }
.db-check { flex: none; width: 16px; height: 16px; border-radius: 5px; border: 2px solid color-mix(in srgb, var(--fg) 25%, transparent); }
.db-tag { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; color: var(--accent); background: var(--accent-soft); }
.db-bar { height: 6px; border-radius: 6px; background: color-mix(in srgb, var(--fg) 8%, transparent); overflow: hidden; margin: 4px 0 6px; }
.db-bar i { display: block; height: 100%; background: var(--accent); border-radius: 6px; }
.db-empty, .db-lock { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px; border-radius: 10px; background: color-mix(in srgb, var(--fg) 4%, transparent); font-size: 13.5px; color: var(--muted); }
.db-empty span, .db-lock span { flex: 1 1 200px; }
.db-lock .i { width: 16px; height: 16px; flex: none; }
.db-quick { display: flex; flex-wrap: wrap; gap: 8px; }
.db-q { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--line); background: transparent; color: var(--fg); font: 600 14px var(--font-body); cursor: pointer; }
.db-q:hover { background: color-mix(in srgb, var(--fg) 5%, transparent); }
.db-q .i { width: 16px; height: 16px; stroke: var(--accent); }
.db-q small { font-size: 11px; font-weight: 700; color: var(--muted); }
.db-q.off { opacity: .7; }
@media (max-width: 1000px) { .db-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .db-cols { grid-template-columns: 1fr; } }

/* ---------- Menu : groupes repliables ---------- */
.side .nav-label[data-group] { display: flex; align-items: center; justify-content: space-between; cursor: pointer; user-select: none; border-radius: 6px; }
.side .nav-label[data-group]::after { content: ""; width: 7px; height: 7px; margin-right: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .2s; opacity: .7; }
.side .nav-label[data-group].closed::after { transform: rotate(-45deg); }
.side .nav-label[data-group]:hover { color: var(--fg); }
.side .nav .nav-folded { display: none; }


/* ---------- Pipeline : tableau par étape ---------- */
.card-head .pipe-mode { margin-left: auto; }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(168px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.bcol { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 10px; border-radius: 12px; background: color-mix(in srgb, var(--fg) 3%, transparent); border: 1px solid var(--line); }
.bcol-h { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 6px; font-size: 13px; }
.bcol-h span { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--fg) 8%, transparent); color: var(--muted); }
.bcol[data-col="signee"] .bcol-h b { color: var(--ok); }
.bcol[data-col="refus"] { opacity: .75; }
.bcol-empty { margin: 0; padding: 10px; text-align: center; color: var(--muted); font-size: 13px; }
.row.bcard { display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding: 12px; margin: 0; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
.row.bcard.is-due { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.bcard-t { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; min-width: 0; }
.bcard-t a, .bcard-t strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bcard small { font-size: 12px; }
.bcard-due { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--accent); }
.bcard-due .i { width: 13px; height: 13px; }
.bcard-a { display: flex; gap: 6px; margin-top: 2px; }
.bcard-a select { flex: 1; min-width: 0; height: 32px; font-size: 12.5px; padding: 0 8px; }
.bcard-a .btn-ghost { flex: none; }
.row.flash { animation: rowFlash 1.6s ease; }
@keyframes rowFlash { 0%, 40% { box-shadow: 0 0 0 3px var(--accent-soft); border-color: var(--accent); } }

/* ---------- Dans OnlyFans : une fois l'extension connectée, les comptes d'abord ---------- */
#view-extension.ext-ready .wrap.stack > #of-card { order: -2; }
#view-extension.ext-ready .wrap.stack > #xe-card { order: -1; }
#view-extension.ext-ready #xe-box { display: none; }
#view-extension.ext-ready #xe-card .card-head { margin: 0; }
#view-extension.ext-ready .xh-hero { order: 2; }

/* ---------- Réponses fans : la promo de l'extension en une ligne discrète ---------- */
body.epure .xh-promo { background: var(--surface); border: 1px solid var(--line); box-shadow: none; color: var(--fg); padding: 10px 14px; border-radius: 10px; }
body.epure .xh-promo .i { stroke: var(--accent); }
body.epure .xh-promo em { color: var(--accent); }
.bcard-a { flex-wrap: wrap; }
.bcard-a select { flex: 1 1 100%; }
.bcard-a .btn-ghost { flex: 1 1 100%; justify-content: center; }
#view-extension.ext-ready .step-n { display: none; }


/* ---------- Assistant IA : une vraie boîte de discussion ---------- */
body.epure #thread { max-width: 46rem; }
body.epure .msg.user .bubble { background: color-mix(in srgb, var(--fg) 9%, var(--surface)); background-image: none; color: var(--fg); border: 1px solid var(--line); box-shadow: none; }
body.epure .msg.ai .bubble { background: transparent; border: 0; padding: 2px 0 0; border-radius: 0; }
body.epure .msg { margin-block: 18px; }
body.epure .dl button { background: transparent !important; background-image: none !important; color: var(--muted) !important; border: 1px solid var(--line) !important; box-shadow: none !important; border-radius: 8px; height: 30px; padding: 0 10px; font-size: 12.5px; }
body.epure .dl button:hover { color: var(--fg) !important; background: color-mix(in srgb, var(--fg) 5%, transparent) !important; }
body.epure .composer-zone { background: linear-gradient(transparent, var(--bg) 30%); border: 0; padding-top: 14px; }
body.epure .composer-zone .wrap { max-width: 46rem; }
.composer.cbox { display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding: 10px 10px 8px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.composer.cbox:focus-within { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.composer.cbox textarea { width: 100%; min-height: 26px; max-height: 220px; padding: 6px 2px; border: 0 !important; background: transparent !important; box-shadow: none !important; resize: none; font-size: 15px; outline: none; }
.cbox-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cbox-left, .cbox-right { display: flex; align-items: center; gap: 8px; }
.cbox-left .seg { height: 30px; }
.cbox-left .seg button { padding: 0 11px; font-size: 12.5px; }
.cbox-left .pill { font-size: 12px; }
.cbox-right #send { height: 34px; padding: 0 16px; border-radius: 10px; }
.cbox-right .icon-btn { width: 34px; height: 34px; }
body.epure .composer-zone .hint { text-align: center; font-size: 11.5px; opacity: .7; }
@media (max-width: 760px) { .cbox-left .pill { display: none; } }

/* ---------- Scripts PPV : formulaire en sections, bibliothèque allégée ---------- */
#sform .f-sec { margin: 8px 0 -2px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
#sform .f-sec:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
#sform .s-actions { position: sticky; bottom: 0; padding: 12px 0 2px; background: linear-gradient(transparent, var(--surface) 35%); }
#sform .s-actions .btn-main { width: 100%; justify-content: center; height: 42px; }
.lib-item { padding: 14px 16px; }
.lib-acts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.lib-more { position: relative; }
.lib-more summary { list-style: none; cursor: pointer; height: 30px; padding: 0 10px; display: inline-flex; align-items: center; border-radius: 8px; border: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.lib-more summary::-webkit-details-marker { display: none; }
.lib-more[open] summary { color: var(--fg); background: color-mix(in srgb, var(--fg) 5%, transparent); }
.lib-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; min-width: 190px; display: flex; flex-direction: column; padding: 6px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }
body.epure .lib-menu button { justify-content: flex-start; border: 0 !important; width: 100%; height: 34px; }
body.epure .lib-menu button.danger { color: var(--danger) !important; }

/* ---------- Veille : des points plus lisibles ---------- */
#veille-list > * { border-radius: 10px; }

.lib-menu { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; min-width: 0; margin-top: 8px; padding: 0; border: 0; background: transparent; box-shadow: none; }
body.epure .lib-menu button { width: auto; height: 30px; border: 1px solid var(--line) !important; }
.lib-more { flex-basis: auto; }
.lib-more[open] { flex-basis: 100%; }
body.epure .msg.user .bubble, body.epure .bubble.user { color: var(--fg) !important; }
body.epure .msg.user + .msg.user { margin-top: 6px; }
body.epure .composer-zone { padding-top: 8px; }
body.epure .composer-zone .hint { margin-top: 4px; }

/* mode clair : vert et orange plus foncés pour rester lisibles sur fond blanc */
:root[data-theme="light"] body.epure { --ok: #15803d; --warn: #b45309; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) body.epure { --ok: #15803d; --warn: #b45309; } }


/* ---------- Scripts PPV : le script s'écrit dans l'onglet ---------- */
.s-side { min-width: 0; }
.s-result { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)) !important; }
.s-result-body { max-height: 60vh; overflow: auto; padding-right: 4px; font-size: 14.5px; line-height: 1.6; }
.s-result-body h1 { font-size: 18px; margin: 0 0 8px; } .s-result-body h3 { font-size: 15px; margin: 14px 0 6px; }
.s-result-body blockquote { margin: 6px 0; padding: 8px 12px; border-left: 3px solid var(--accent); background: color-mix(in srgb, var(--fg) 4%, transparent); border-radius: 0 8px 8px 0; }
.s-result .dl { margin-top: 12px; }


/* ---------- Scripts PPV : le générateur à gauche (sections repliables, défilement interne), la bibliothèque à droite ---------- */
.s-layout { display: grid; grid-template-columns: minmax(300px, 350px) minmax(0, 1fr); gap: 18px; align-items: start; }
.s-side { position: sticky; top: 0; min-width: 0; }
.s-gen { display: flex; flex-direction: column; padding: 0; max-height: calc(100vh - 150px); overflow: hidden; }
.s-gen > .card-head { margin: 0; padding: 16px 18px 12px; }
.s-gen .s-form { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.s-cols { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; padding: 0 18px; }
.s-col { min-width: 0; border-top: 1px solid var(--line); }
#sform .s-col > summary.f-sec { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; padding: 12px 0; border: 0; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); cursor: pointer; list-style: none; }
#sform .s-col > summary.f-sec::-webkit-details-marker { display: none; }
#sform .s-col > summary.f-sec::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin-right: 4px; transition: transform .15s; }
#sform .s-col[open] > summary.f-sec::after { transform: rotate(-135deg); }
#sform .s-col[open] > summary.f-sec { color: var(--fg); }
.s-col > .grid { gap: 12px 12px; padding-bottom: 16px; }
.s-col .checks { flex-wrap: wrap; }
.s-foot { display: flex; justify-content: flex-end; margin: 0; padding: 12px 18px; border-top: 1px solid var(--line); background: var(--surface); }
.s-foot .btn-main { height: 42px; width: 100%; justify-content: center; }
.s-bottom { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.s-bottom .s-result-body { max-height: 50vh; }
.s-libcard { min-width: 0; }
.sl-split .lb-list, .sl-split .lb-detail { max-height: calc(100vh - 260px); }
.sl-detail.lib-item { padding: 0; background: var(--surface); overflow: visible; }
.sl-detail .lb-dt .lib-sum { margin: 4px 0 0; }
.sl-tabs { display: flex; gap: 2px; padding: 0 12px; border-bottom: 1px solid var(--line); }
.sl-tabs button { display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.sl-tabs button .i { width: 14px; height: 14px; } .sl-tabs button small { font-size: 11px; font-weight: 700; color: var(--gold); }
.sl-tabs button:hover { color: var(--fg); } .sl-tabs button.on { color: var(--fg); border-bottom-color: var(--accent); }
.sl-md { font-size: 14.5px; line-height: 1.6; } .sl-md h1 { font-size: 18px; margin: 0 0 8px; } .sl-md h3 { font-size: 15px; margin: 14px 0 6px; }
.sl-md blockquote { margin: 6px 0; padding: 8px 12px; border-left: 3px solid var(--accent); background: color-mix(in srgb, var(--fg) 4%, transparent); border-radius: 0 8px 8px 0; }
.sl-body .lab-panel, .sl-body .of-panel { margin: 0; }
@media (max-width: 1100px) { .s-layout { grid-template-columns: 1fr; } .s-side { position: static; } .s-gen { max-height: none; } .sl-split .lb-list { max-height: 320px; } .sl-split .lb-detail { max-height: none; } }

/* admin : budget IA de chaque compte */
.urow-ai { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.urow-ai b { color: var(--fg); }
.urow-ai.eco { color: var(--warn); }

/* scripts dans OnlyFans : le média du coffre pour chaque étape */
.of-btn.on { border-color: var(--accent); background: var(--accent-soft); }
.of-panel { margin-top: 10px; padding: 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line)); background: color-mix(in srgb, var(--accent) 5%, var(--surface)); display: flex; flex-direction: column; gap: 10px; }
.of-intro { margin: 0; display: flex; gap: 9px; font-size: 13px; line-height: 1.45; color: color-mix(in srgb, var(--fg) 80%, transparent); }
.of-intro .i { width: 16px; height: 16px; flex: none; margin-top: 2px; stroke: var(--accent); }
.of-steps { display: flex; flex-direction: column; gap: 6px; }
.of-step { display: grid; grid-template-columns: 26px minmax(0, 1fr) minmax(10rem, 15rem); align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.of-n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; font-weight: 700; font-size: 12.5px; background: var(--accent-soft); color: var(--accent); }
.of-what { display: flex; flex-direction: column; min-width: 0; }
.of-what b { font-size: 13.5px; }
.of-what small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.of-step input { width: 100%; height: 34px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface-2); color: var(--fg); font: inherit; font-size: 13px; }
@media (max-width: 640px) { .of-step { grid-template-columns: 26px minmax(0, 1fr); } .of-step input { grid-column: 1 / -1; } }
/* script ouvert sur « Dans OnlyFans » : toute la largeur de la bibliothèque */
.lib-item:has(.of-panel) { grid-column: 1 / -1; }

/* compte connecté : partagé avec l'équipe */
.of-team { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; padding: 10px 12px; border-radius: 10px; border: 1px dashed var(--line); cursor: pointer; }
.of-team input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.of-team span { display: flex; flex-direction: column; gap: 2px; } .of-team b { font-size: 13.5px; } .of-team small { font-size: 12px; color: var(--muted); line-height: 1.4; }

/* Velora Studio (appli Windows) : la carte de téléchargement */
.studio-card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: center;
  background: radial-gradient(520px 240px at 100% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%), var(--surface); }
.studio-card[hidden] { display: none; }
.studio-l { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.studio-l h2 { margin: 0; font-family: var(--font-display); font-size: clamp(20px, 2.6vw, 26px); letter-spacing: -0.02em; line-height: 1.15; }
.studio-pts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.studio-pts li { display: flex; gap: 10px; }
.studio-pts .i { width: 18px; height: 18px; flex: none; margin-top: 2px; stroke: var(--accent); }
.studio-pts span { display: flex; flex-direction: column; font-size: 13px; color: var(--muted); line-height: 1.4; }
.studio-pts b { color: var(--fg); font-size: 14px; }
.studio-dl { display: flex; flex-direction: column; gap: 6px; }
.studio-dl .btn-main { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; }
.studio-mock { display: grid; grid-template-columns: 92px 1fr; height: 230px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #0f0b12; color: #f6f1f5; font-size: 11px; box-shadow: 0 18px 50px rgba(0, 0, 0, .35); }
.sm-rail { display: flex; flex-direction: column; gap: 6px; padding: 10px 8px; background: #10100f; border-right: 1px solid rgba(255, 255, 255, .08); }
.sm-logo { width: 22px; height: 22px; border-radius: 7px; background: var(--grad); margin-bottom: 4px; }
.sm-acc { position: relative; display: flex; align-items: center; gap: 6px; padding: 4px; border-radius: 8px; font-weight: 600; }
.sm-acc.on { background: rgba(151, 151, 150, .14); box-shadow: inset 0 0 0 1px rgba(151, 151, 150, .35); }
.sm-av { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; font-style: normal; font-weight: 800; font-size: 10px; color: #fff; }
.sm-av.of { background: linear-gradient(135deg, #00aff0, #0091ea); } .sm-av.mym { background: linear-gradient(135deg, #ff7a59, #8c8c8b); }
.sm-live { position: absolute; left: 18px; top: 18px; width: 7px; height: 7px; border-radius: 50%; background: #34d399; }
.sm-main { position: relative; display: flex; flex-direction: column; }
.sm-top { height: 22px; border-bottom: 1px solid rgba(255, 255, 255, .08); background: #10100f; }
.sm-chat { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 12px; }
.sm-chat p { margin: 0; max-width: 70%; padding: 6px 9px; border-radius: 10px; }
.sm-chat .fan { background: rgba(255, 255, 255, .08); } .sm-chat .me { align-self: flex-end; background: linear-gradient(135deg, #00aff0, #0091ea); }
.sm-panel { position: absolute; right: 8px; bottom: 8px; width: 62%; display: flex; flex-direction: column; gap: 3px; padding: 8px 10px 8px 34px; border-radius: 10px; background: #161615; border: 1px solid rgba(151, 151, 150, .35); }
.sm-panel b { position: absolute; left: 8px; top: 8px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: var(--grad); font-size: 11px; }
.sm-panel b svg { width: 11px; height: 11px; display: block; fill: var(--on-accent, #141413); } /* (27/11/2026) le symbole La marche au lieu du V */
.sm-panel span { font-weight: 700; } .sm-panel em { font-style: normal; color: rgba(246, 241, 245, .6); }
@media (max-width: 860px) { .studio-card { grid-template-columns: 1fr; } }

/* scripts rangés par créatrice */
.lib-filter { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.lib-filter .tag small { margin-left: 4px; color: var(--muted); font-weight: 700; }
.lib-filter .tag.on { border-color: var(--accent); background: var(--accent-soft); }
.lib-cr { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--accent-soft); color: var(--accent); }
.of-who { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; font-weight: 600; }
.of-who select { height: 34px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface-2); color: var(--fg); font: inherit; font-size: 13px; }

/* ---------- Velora Studio (appli PC) : la même apparence sobre que la fenêtre de l'appli ----------
   Palette neutre (ni rose dans les fonds, ni lueurs), accent uni à la place des dégradés, ombres retirées.
   Le sélecteur répété l'emporte sur les palettes de themes.css. Le thème clair / sombre suit celui de Studio. */
:root.studio-ui.studio-ui, :root.studio-ui.studio-ui[data-theme="dark"] {
  --bg: #0b0b0f; --bg-2: #0f0f13; --surface: #141419; --surface-2: #1b1b21; --line: #26262e; --fg: #f4f2f6; --muted: #9b99a4;
  --accent: #979796; --accent-2: #979796; --accent-soft: rgba(151, 151, 150, .12); --grad: linear-gradient(#929291, #929291);
  --glow: transparent; --bg-glow: transparent; --shadow: none; --on-accent: #ffffff;
}
:root.studio-ui.studio-ui[data-theme="light"] {
  --bg: #f4f5f8; --bg-2: #eef0f4; --surface: #ffffff; --surface-2: #f3f4f7; --line: #e4e5eb; --fg: #16171d; --muted: #6b6d78;
  --accent: #7b7b7a; --accent-2: #7b7b7a; --accent-soft: #ededec; --grad: linear-gradient(#7b7b7a, #7b7b7a);
  --glow: transparent; --bg-glow: transparent; --shadow: none; --on-accent: #ffffff;
}
.studio-ui .sky, .studio-ui .orb, .studio-ui .grain { display: none !important; }
.studio-ui body, .studio-ui body.epure { background: var(--bg) !important; }
.studio-ui .card, .studio-ui .db-kpi, .studio-ui .co-card, .studio-ui .tab, .studio-ui .nav button, .studio-ui .tp-row, .studio-ui .lib-item { box-shadow: none !important; }
.studio-ui .card { border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.studio-ui .btn-main { box-shadow: none !important; border-radius: 10px; }
.studio-ui .btn-main:hover { filter: brightness(1.07); transform: none; }
.studio-ui .btn-ghost { border-radius: 10px; }
.studio-ui input, .studio-ui select, .studio-ui textarea { border-radius: 9px; background: var(--surface-2); border-color: var(--line); box-shadow: none; }
.studio-ui .nav button[aria-current="page"] { background: var(--accent-soft); box-shadow: none; }
.studio-ui .nav button[aria-current="page"] svg { stroke: var(--accent) !important; }
.studio-ui .viewbar { background: var(--bg); border-bottom: 1px solid var(--line); }
.studio-ui .side, .studio-ui aside.nav-wrap, .studio-ui .sidebar { background: var(--bg-2); }

/* Velora Studio 2.3+ (classe studio-nav posée par l'appli) : le menu passe dans la barre de l'appli, le titre de la
   rubrique dans sa barre du haut. Ici il ne reste que la page et ses boutons. Les anciennes versions gardent leur menu. */
.studio-nav .side, .studio-nav .bottomnav, .studio-nav #web-pill { display: none !important; }
.studio-nav .app { grid-template-columns: minmax(0, 1fr) !important; grid-template-rows: minmax(0, 1fr) !important; }
.studio-nav .viewbar > div:first-child:has(> h1) { display: none; }
.studio-nav .viewbar:not(:has(.viewbar-tools)) { display: none; }
.studio-nav .viewbar { padding: 10px 28px; justify-content: flex-end; background: var(--bg); }
.of-next > .btn-ghost { margin-top: 10px; border: 1px solid var(--line); background: var(--surface-2); }
.of-next > p.small { margin-top: 4px; }
.of-team.sub { margin-left: 30px; margin-top: 6px; }

/* Velora Studio : barres de défilement fines et discrètes ; onglets des paramètres opaques quand la page défile dessous. */
.studio-ui ::-webkit-scrollbar { width: 8px; height: 8px; }
.studio-ui ::-webkit-scrollbar-track { background: transparent; }
.studio-ui ::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
.studio-ui ::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--fg) 16%, transparent); border-radius: 99px; border: 2px solid transparent; background-clip: padding-box; }
.studio-ui ::-webkit-scrollbar-thumb:hover { background-color: color-mix(in srgb, var(--fg) 30%, transparent); }
.studio-ui ::-webkit-scrollbar-corner { background: transparent; }
.studio-ui .set-tabs { backdrop-filter: none; }

/* Équipe : qui travaille sur quel compte (cases), rôles, ajout par e-mail */
.of-assign { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; padding: 10px 12px; border-radius: 10px; border: 1px dashed var(--line); }
.of-assign > b { font-size: 13.5px; } .of-assign > small { font-size: 12px; color: var(--muted); line-height: 1.4; }
.of-chips, .tm-accs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.of-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface-2); font-size: 13px; cursor: pointer; }
.of-chip input { width: 15px; height: 15px; margin: 0; accent-color: var(--accent); }
.of-chip em { font-style: normal; font-size: 11.5px; color: var(--muted); } .of-chip em.mgr { color: var(--accent); }
.of-chip:has(input:checked) { border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: var(--accent-soft); }
.tm-roles { display: flex; flex-wrap: wrap; gap: 8px; }
.tm-roles span { flex: 1 1 220px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.tm-roles b { display: block; color: var(--fg); font-size: 13px; }
.tm-add { display: grid; grid-template-columns: 1fr 1.4fr .9fr; gap: 10px; }
@media (max-width: 760px) { .tm-add { grid-template-columns: 1fr; } }
.tm-role .muted { margin-left: 4px; }
.cel-studio { display: flex; align-items: center; gap: 12px; margin: 14px 0 4px; padding: 12px 14px; border-radius: 14px; text-align: left; background: color-mix(in srgb, var(--accent) 10%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.cel-studio > .i { width: 22px; height: 22px; flex: none; color: var(--accent); }
.cel-studio div { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 13px; } .cel-studio span { color: var(--muted); font-size: 12.5px; }

/* Mon équipe (2.6) : une fiche claire par membre */
.tm-intro b { color: var(--fg); }
.tm-member { gap: 12px; padding: 12px 14px; background: var(--surface-2); }
.tm-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tm-av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 700; color: var(--on-accent, #fff); background: var(--accent); }
.tm-id { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tm-id strong { font-size: 14.5px; } .tm-id small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-x { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.tm-x:hover { background: color-mix(in srgb, #ef4444 14%, transparent); color: #ef4444; }
.tm-x .i { width: 15px; height: 15px; }
.tm-line { display: flex; flex-direction: column; gap: 6px; }
.tm-lbl { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.tm-lbl em { font-style: normal; font-weight: 600; letter-spacing: 0; text-transform: none; margin-left: 4px; }
.tm-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 11px; background: var(--bg); border: 1px solid var(--line); }
.tm-seg button { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 8px 11px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font: 650 13.5px var(--font-body); cursor: pointer; text-align: left; }
.tm-seg button small { font-size: 11.5px; font-weight: 500; opacity: .85; }
.tm-seg button[aria-checked="true"] { background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent); }
.tm-seg.sm button { padding: 6px 10px; }
.tm-note { margin: 0; font-size: 12px; color: var(--muted); }
.tm-invite { gap: 12px; padding-top: 12px; }
.tm-invite .field { display: flex; flex-direction: column; gap: 6px; }
.tm-invite #tm-create { align-self: flex-start; }
.tm-inv { background: var(--surface-2); }

/* Apparence : deux grandes cartes, Sombre et Clair */
.appearance.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 560px; }
.theme-card[data-theme-prev="dark"] .pal-prev { --pv-bg: #0b0b0f; --pv-side: #121217; --pv-card: #1a1a20; --pv-line: #2a2a31; --pv-accent: #929291; }
.theme-card[data-theme-prev="light"] .pal-prev { --pv-bg: #f4f5f8; --pv-side: #ffffff; --pv-card: #ffffff; --pv-line: #e3e4ea; --pv-accent: #7b7b7a; }
.theme-card .pal-prev { background: var(--pv-bg) !important; border: 1px solid var(--pv-line); }
.theme-card .pal-side { background: var(--pv-side) !important; }
.theme-card .pal-side i, .theme-card .pal-card i { background: var(--pv-line) !important; }
.theme-card .pal-card { background: var(--pv-card) !important; border-color: var(--pv-line) !important; }
.theme-card .pal-card b { background: var(--pv-accent) !important; }

/* Navigateur : Velora s'utilise dans Velora Studio */
.web-gate { min-height: 100%; display: grid; place-items: center; padding: 32px 16px; background: var(--bg); }
.web-gate[hidden] { display: none; }
.wg-card { max-width: 520px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.wg-card h1 { margin: 6px 0 0; font-family: var(--font-display); font-size: clamp(26px, 5vw, 34px); letter-spacing: -.02em; line-height: 1.15; }
.wg-card h1 em { font-style: normal; color: var(--accent); }
.wg-card .btn-main { display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; font-size: 15px; text-decoration: none; }
.wg-msg { margin: 0; padding: 10px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; background: color-mix(in srgb, #ef4444 12%, transparent); color: #ef4444; }
.wg-msg.ok { background: color-mix(in srgb, #22c55e 13%, transparent); color: #16a34a; }

.tm-code { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--accent-soft); }
.tm-code span { font-size: 12.5px; color: var(--muted); } .tm-code b { font: 700 18px var(--font-display); letter-spacing: .12em; color: var(--accent); }
.tm-code .btn-ghost { margin-left: auto; }

/* ---------- Démarrage : rien ne s'affiche tant que l'écran n'est pas choisi (boot.js / app.js) ---------- */
.app-boot #app, .app-boot #lock, .app-boot #web-gate { visibility: hidden !important; }
.app-boot:not(.welcome-on) body::after { content: ""; position: fixed; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%;
  border: 2px solid var(--line); border-top-color: var(--accent); animation: bootSpin .8s linear infinite; }
@keyframes bootSpin { to { transform: rotate(1turn); } }

/* ---------- Connexion, inscription et paiement : même style que le site (sobre, Inter, un seul accent) ---------- */
.lock, .web-gate, .co-modal { --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; font-family: var(--font-body); }
.lock h2, .lock h3, .web-gate h1, .co-card h2, .co-price strong { font-family: "Inter Tight", "Inter", system-ui, sans-serif; font-weight: 600; letter-spacing: -.025em; }
.lock { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--bg); }
.lock-pitch { background: var(--surface); padding: clamp(32px, 5vw, 64px); gap: 28px; justify-content: space-between; }
.lock-pitch .brand .logo, .web-gate .logo { background: var(--accent); box-shadow: none; }
.lp-default, .lp-order { display: flex; flex-direction: column; gap: 18px; max-width: 30rem; }
.lp-default[hidden], .lp-order[hidden] { display: none; }
.lock-pitch h2 { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.1; font-weight: 600; letter-spacing: -.03em; }
.lp-lead { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.lp-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; font-size: 14.5px; color: var(--fg); }
.lp-list li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; }
.lp-list .i { width: 16px; height: 16px; flex: none; margin-top: 2px; stroke: var(--accent); stroke-width: 2.2; }
.lp-list .more { color: var(--muted); font-size: 13px; }
.lp-k { margin: 0; font-size: 13px; font-weight: 600; color: var(--accent); }
.lp-plan p { margin: 8px 0 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.lp-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; padding: 16px 0; border-block: 1px solid var(--line); }
.lp-price strong { font: 600 36px/1 "Inter Tight", "Inter", sans-serif; letter-spacing: -.03em; }
.lp-price span { font-size: 13.5px; color: var(--muted); }
.lp-steps { list-style: none; margin: 6px 0 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.lp-steps li { display: flex; align-items: center; gap: 7px; padding: 6px 11px 6px 6px; border-radius: 999px; border: 1px solid var(--line); }
.lp-steps span { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; font-weight: 600; background: var(--surface-2); color: var(--muted); }
.lp-steps li.on { color: var(--fg); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.lp-steps li.on span { background: var(--accent); color: var(--on-accent, #fff); }
.lp-change { font-size: 13.5px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; align-self: flex-start; }
.lp-foot { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.lp-foot .i { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.lock-card { max-width: 25rem; gap: 16px; }
.lock-card h3 { font-size: 26px; }
body.epure .lock .btn-main, body.epure .web-gate .btn-main, body.epure .co-modal .btn-main, .lock .btn-main, .web-gate .btn-main, .co-modal .btn-main { background: var(--accent) !important; background-image: none !important; color: var(--on-accent, #fff) !important; box-shadow: none; border-radius: 10px; font-weight: 600; }
.lock .btn-main:hover, .web-gate .btn-main:hover, .co-modal .btn-main:hover { filter: brightness(1.07); }
.lock .field input { border-radius: 10px; }
.auth-seg { border-radius: 10px; } .auth-seg button { border-radius: 7px; }
.web-gate h1 { font-weight: 600; letter-spacing: -.025em; }
.web-gate h1 em, .wg-card h1 em { color: var(--fg); font-style: normal; }
.co-card { border-radius: 16px; }
.co-kicker { letter-spacing: 0; text-transform: none; font-size: 13px; }
@media (max-width: 760px) {
  .lock { grid-template-columns: minmax(0, 1fr); }
  .lock-pitch { padding: 22px 18px; gap: 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .lp-default { display: none; }
  .lp-order .lp-list, .lp-change, .lp-foot { display: none; }
  .lp-price { padding: 10px 0; } .lp-price strong { font-size: 28px; }
}

/* ---------- Page de connexion : mise en page équilibrée sur grand écran (23/10/2026) ---------- */
/* Panneau gauche de largeur fixe (sa propre couleur), formulaire centré dans le reste, couleurs du site. */
.studio .lock, .studio .web-gate, .studio .co-modal { --accent: #8c8c8b; --accent-soft: rgba(140, 140, 139, .12); }
:root[data-theme="light"] .studio .lock, :root[data-theme="light"] .studio .web-gate, :root[data-theme="light"] .studio .co-modal { --accent: #797978; --accent-soft: rgba(121, 121, 120, .08); }
.studio .lock { grid-template-columns: minmax(400px, 540px) minmax(0, 1fr); background: var(--bg); }
.studio .lock-pitch { display: grid; grid-template-rows: auto 1fr auto; gap: 32px; background: var(--surface); border-right: 1px solid var(--line); padding: clamp(32px, 4vw, 56px); }
.studio .lock-pitch .lp-default, .studio .lock-pitch .lp-order { align-self: center; }
.studio .lock-pitch .brand .logo, .studio .web-gate .logo { background: var(--accent) !important; background-image: none !important; color: var(--on-accent, #fff); box-shadow: none !important; }
.studio .lock-pitch h2 { font-size: clamp(30px, 2.8vw, 40px); }
.studio .lock-card { align-self: center; justify-self: center; width: min(100%, 400px); max-width: 400px; padding: 36px 32px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: none; backdrop-filter: none; }
.studio .lock-card h3 { font-size: 24px; letter-spacing: -.02em; }
.studio .lock-card .field input { background: var(--bg); }
.studio .lock-card .auth-seg { background: var(--bg); }
.studio .lock-card .auth-seg button[aria-checked="true"] { background: var(--surface-2); box-shadow: none; }
.studio .lock .btn-main { height: 44px; padding: 0 18px; }
@media (max-width: 900px) {
  .studio .lock { grid-template-columns: minmax(0, 1fr); }
  .studio .lock-pitch { display: flex; flex-direction: column; justify-content: flex-start; min-height: 0; height: auto; gap: 14px; padding: 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .studio .lock { align-content: start; grid-template-rows: auto auto; min-height: 100vh; }
  .studio .lock-card { align-self: start; margin: 24px auto 40px; padding: 26px 20px; width: calc(100% - 32px); }
}

/* ---------- Page « ouvre Velora Studio » (navigateur, une fois connecté) : même style que la connexion ---------- */
.studio .web-gate { display: grid; grid-template-columns: minmax(400px, 540px) minmax(0, 1fr); place-items: stretch; padding: 0; min-height: 100%; background: var(--bg); }
.studio .web-gate[hidden] { display: none; }
.wg-side { display: grid; grid-template-rows: auto 1fr auto; gap: 32px; padding: clamp(32px, 4vw, 56px); background: var(--surface); border-right: 1px solid var(--line); }
.wg-side-in { align-self: center; display: flex; flex-direction: column; gap: 26px; max-width: 30rem; }
.wg-acc { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); }
.wg-acc[hidden] { display: none; }
.wg-av { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent, #fff); font-weight: 600; font-size: 16px; }
.wg-acc div { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.wg-acc b { font-size: 15px; } .wg-acc small { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wg-plan { flex: none; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--accent); background: var(--accent-soft); }
.wg-plan:empty { display: none; }
.wg-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.wg-steps li { position: relative; display: flex; gap: 14px; padding: 0 0 22px; color: var(--muted); }
.wg-steps li:last-child { padding-bottom: 0; }
.wg-steps li:not(:last-child)::before { content: ""; position: absolute; left: 13px; top: 30px; bottom: 4px; width: 2px; border-radius: 2px; background: var(--line); }
.wg-steps li.done:not(:last-child)::before { background: var(--accent); }
.wg-steps li > span { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600; border: 1.5px solid var(--line); background: var(--bg); color: var(--muted); }
.wg-steps li.done > span { background: var(--accent); border-color: var(--accent); color: var(--on-accent, #fff); }
.wg-steps li.on > span { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.wg-steps b { display: block; font-size: 15px; color: var(--fg); font-weight: 600; } .wg-steps li:not(.done):not(.on) b { color: var(--muted); }
.wg-steps small { display: block; margin-top: 2px; font-size: 13px; }
.wg-main { display: grid; place-items: center; padding: 40px 24px; }
.studio .wg-card { width: min(100%, 460px); max-width: 460px; align-items: stretch; text-align: left; gap: 16px; padding: 36px 32px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.studio .wg-card h1 { margin: 0; font-size: clamp(26px, 2.6vw, 32px); line-height: 1.15; }
.studio .wg-card h1 em { color: var(--accent); }
.wg-lead { margin: 0; font-size: 15px; line-height: 1.6; }
.studio .wg-msg { align-self: flex-start; padding: 8px 12px; border-radius: 10px; font-size: 13.5px; font-weight: 600; }
.studio .wg-card .btn-main.wg-dl { justify-content: center; height: 48px; padding: 0 20px; font-size: 15px; margin-top: 4px; }
.wg-os { margin: -6px 0 0; font-size: 12.5px; color: var(--muted); text-align: center; }
.wg-os a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.studio .wg-card #wg-plans { align-self: stretch; }
.wg-help { padding: 14px 16px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); font-size: 13px; color: var(--muted); line-height: 1.55; }
.wg-help p { margin: 0; } .wg-help p + p { margin-top: 4px; } .wg-help b { color: var(--fg); font-weight: 600; }
.wg-links { margin: 4px 0 0; display: flex; justify-content: center; gap: 18px; font-size: 13.5px; }
.wg-links a, .wg-links .linkish { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.wg-links a:hover, .wg-links .linkish:hover { color: var(--fg); }
@media (max-width: 900px) {
  .studio .web-gate { grid-template-columns: minmax(0, 1fr); align-content: start; }
  .wg-side { display: flex; flex-direction: column; gap: 16px; padding: 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .wg-side .lp-foot, .wg-steps { display: none; }
  .wg-main { padding: 20px 16px 40px; }
  .studio .wg-card { padding: 26px 20px; }
}

/* ---------- CRM fans ---------- */
#fx-acc { min-width: 180px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); font: inherit; font-weight: 600; }
.fx-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
#fx-q { min-width: 220px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font: inherit; }
.fx-foot { margin-top: 12px; }
.fx-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.fx-tags button { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.fx-tags button[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
@media (max-width: 760px) {
  #fx-q { min-width: 0; width: 100%; }
}
#fx-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) { #fx-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
#fx-list .empty b { color: var(--fg); }

/* ---------- Suivi des chatters ---------- */
#ct-days { padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); font: inherit; font-weight: 600; }
.ct-com { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 600; }
.ct-com input { width: 64px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); font: inherit; }
#ct-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ct-h { margin: 0 0 12px; font-size: 16px; }
.ct-table { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ct-row { display: grid; grid-template-columns: minmax(0, 2.2fr) 1.1fr .9fr .8fr .6fr .7fr .9fr; gap: 10px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 14px; }
.ct-row:first-child { border-top: 0; }
.ct-row.head { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--surface-2); }
.ct-row b { font-weight: 600; font-variant-numeric: tabular-nums; }
.ct-row > span > small { display: block; font-size: 11.5px; color: var(--muted); }
.ct-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ct-who em { width: 26px; height: 26px; flex: none; border-radius: 8px; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 12px; background: var(--surface-2); color: var(--muted); }
.ct-row:nth-child(2) .ct-who em { background: var(--accent); color: var(--on-accent, #fff); }
.ct-who > span { min-width: 0; display: flex; flex-direction: column; } .ct-who small { font-size: 11.5px; color: var(--muted); }
.ct-live { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.2); }
.ct-bad { color: #ef4444; font-weight: 600; }
.ct-nc { margin-top: 10px; }
.ct-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px; align-items: start; }
.ct-feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; max-height: 520px; overflow-y: auto; }
.ct-feed li { display: grid; grid-template-columns: 86px 1fr; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13.5px; } .ct-feed li:first-child { border-top: 0; }
.ct-feed small { display: block; font-size: 12px; color: var(--muted); }
.ct-amt { font-weight: 700; font-variant-numeric: tabular-nums; color: #16a34a; }
.ct-rev-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; } .ct-rev-bar .ct-h { margin: 0; flex: 1; }
#ct-who { padding: 6px 10px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); font: inherit; font-size: 13px; }
.ct-risk { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.ct-msgs { display: flex; flex-direction: column; gap: 8px; max-height: 520px; overflow-y: auto; }
.ct-msg { padding: 9px 11px; border-radius: 10px; background: var(--surface-2); border: 1px solid transparent; }
.ct-msg.risk { border-color: rgba(239,68,68,.45); background: rgba(239,68,68,.07); }
.ct-msg small { font-size: 11.5px; color: var(--muted); } .ct-msg p { margin: 3px 0 0; font-size: 13.5px; white-space: pre-wrap; }
@media (max-width: 1000px) { .ct-cols { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  #ct-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ct-row { grid-template-columns: minmax(0, 1.6fr) 1fr .8fr; } .ct-row > span:nth-child(n+4) { display: none; }
}

/* ---------- Suivi des chatters : onglets, planning, paie, réglages ---------- */
.ct-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.ct-tabs button { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.ct-tabs button[aria-selected="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.ct-row { grid-template-columns: minmax(0, 2fr) 1.1fr .9fr .9fr .9fr .8fr .7fr; }
.ct-row.sc { grid-template-columns: minmax(0, 2.4fr) .8fr .8fr .8fr .9fr 1fr; }
.ct-row.py { grid-template-columns: minmax(0, 1.6fr) 1fr 1.1fr 1fr .8fr .8fr 1fr 1fr .6fr; }
.ct-row.st { grid-template-columns: minmax(0, 1.4fr) 1fr 1fr 1.3fr 1fr auto; }
.ct-row.tot { background: var(--surface-2); }
.ct-row input[type="number"] { width: 70px; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font: inherit; font-size: 13px; }
.ct-row select { max-width: 100%; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font: inherit; font-size: 13px; }
.ct-live.idle { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,.2); }
.ct-team { display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.ct-team:first-child { border-top: 0; } .ct-team em { font-style: normal; font-weight: 700; color: var(--muted); }
.ct-team small { display: block; font-size: 12px; color: var(--muted); } .ct-team > span { text-align: right; }
.ct-plan-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 8px; }
.ct-plan-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.ct-plan-form label.grow { flex: 1; min-width: 180px; }
.ct-plan-form input, .ct-plan-form select, .ct-set-row select, #st-com, .st-tier input, #st-safety { padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font: inherit; font-size: 14px; }
.ct-week-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.ct-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.pl-day { min-height: 140px; padding: 8px; border-radius: 12px; background: var(--surface-2); display: flex; flex-direction: column; gap: 6px; }
.pl-day.today { outline: 2px solid var(--accent); }
.pl-day h4 { margin: 0 0 2px; font-size: 12.5px; text-transform: capitalize; color: var(--muted); }
.pl-slot { position: relative; padding: 7px 22px 7px 8px; border-radius: 9px; background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; display: flex; flex-direction: column; gap: 3px; }
.pl-slot.now { border-color: rgba(34,197,94,.6); } .pl-slot.absent { border-color: rgba(239,68,68,.6); }
.pl-slot small { color: var(--muted); font-size: 11.5px; }
.pl-b { align-self: flex-start; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--surface-2); color: var(--muted); }
.pl-b.ok { background: rgba(34,197,94,.15); color: #16a34a; } .pl-b.mid { background: rgba(245,158,11,.15); color: #d97706; } .pl-b.bad { background: rgba(239,68,68,.14); color: #ef4444; }
.pl-x { position: absolute; top: 3px; right: 4px; border: 0; background: none; color: var(--muted); font-size: 15px; cursor: pointer; }
.st-tier .pl-x { position: static; }
.ct-pay-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.ct-paid { display: flex; align-items: center; gap: 6px; } .ct-paid small { font-size: 11px; color: var(--muted); }
.ct-set-row { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 8px; }
.ct-set-row label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.ct-inl { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--muted); font-size: 13px; }
#st-com { width: 80px; } .st-tier input[data-k="from"] { width: 100px; } .st-tier input[data-k="bonus"] { width: 70px; } .st-tier input[data-k="name"] { width: 130px; }
.ct-h3 { margin: 16px 0 4px; font-size: 14px; }
.st-tier { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.ct-set-save { display: flex; justify-content: flex-end; margin-top: 12px; }
#st-safety { width: 100%; resize: vertical; }
@media (max-width: 1000px) { .ct-week { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ct-row.py, .ct-row.st { grid-template-columns: minmax(0, 1.4fr) 1fr 1fr; } .ct-row.py > span:nth-child(n+4):not(:nth-child(8)), .ct-row.st > span:nth-child(n+4):not(:last-child) { display: none; } }
@media (max-width: 760px) { .ct-row.sc { grid-template-columns: minmax(0, 1.6fr) 1fr 1fr; } .ct-row.sc > span:nth-child(n+4):not(:nth-child(6)) { display: none; } }

/* ---------- Fans : revenus de la créatrice, fiche complète ---------- */
.fx-rev-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.fx-rev-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 6px 0 14px; }
.fx-rev-kpis div { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.fx-rev-kpis small { display: block; font-size: 11.5px; color: var(--muted); } .fx-rev-kpis b { font-size: 18px; font-variant-numeric: tabular-nums; }
.fx-rev-grid { display: grid; grid-template-columns: 1.2fr 1.4fr 1fr; gap: 18px; }
.fx-src { display: grid; grid-template-columns: 96px 1fr 76px 38px; gap: 8px; align-items: center; padding: 5px 0; font-size: 13px; }
.fx-src i { height: 8px; border-radius: 99px; background: var(--surface-2); position: relative; overflow: hidden; }
.fx-src i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--accent); border-radius: inherit; }
.fx-src b { text-align: right; font-variant-numeric: tabular-nums; } .fx-src small { color: var(--muted); text-align: right; }
.fx-bars { display: flex; align-items: flex-end; gap: 2px; height: 110px; padding-top: 6px; }
.fx-bars i { flex: 1; height: var(--h); min-height: 2px; border-radius: 3px 3px 0 0; background: var(--accent); opacity: .85; }
.fx-bars i:hover { opacity: 1; }
.fx-top { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; }
.fx-top li { display: flex; justify-content: space-between; gap: 8px; } .fx-top .linkish { text-align: left; padding: 0; font-size: 13.5px; color: var(--fg); }
.fx-tx { margin-top: 14px; } .fx-tx summary { cursor: pointer; font-weight: 600; font-size: 13.5px; }
.fx-tx ul { list-style: none; margin: 8px 0 0; padding: 0; max-height: 300px; overflow-y: auto; }
.fx-tx li { display: grid; grid-template-columns: 56px 1fr 110px 80px; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 13px; } .fx-tx li b { text-align: right; }
@media (max-width: 1000px) { .fx-rev-grid { grid-template-columns: 1fr; } .fx-rev-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Parrainage ---------- */
.ref-link { display: flex; gap: 8px; margin: 12px 0 6px; } .ref-link input { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font: inherit; }
.ref-kpis { margin-top: 14px; }
.ref-list { list-style: none; margin: 8px 0 0; padding: 0; } .ref-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); } .ref-list li b { flex: 1; }
.ct-row.adm-ref { grid-template-columns: minmax(0, 2fr) 1fr 1fr 1fr auto; }

/* ================= modules de l'espace agence (public/work.js) ================= */
.nav-count { margin-left: auto; min-width: 20px; padding: 1px 7px; border-radius: 999px; background: var(--accent); color: var(--on-accent, #fff); font-size: 11px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.demo-banner { border: 1px dashed var(--accent); background: var(--accent-soft); color: var(--fg); padding: 12px 14px; border-radius: 12px; }
/* Analytics */
.an-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.an-filters label, .cp-form label, .ib-ctl label, .au-form label, .lb-form label, .ap-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.an-filters select, .an-filters input, .cp-form input, .cp-form select, .cp-form textarea, .ib-bar select, .ib-bar input, .ib-ctl select, .au-form input, .au-form select, .au-form textarea, .lb-form input, .lb-form select, .lb-form textarea, #lb-q, #lb-fan, .ap-grid input, #jr-q, #jr-who, .fx-adv input, .fx-adv select {
  padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font: inherit; font-size: 14px; }
.an-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.an-kpis .kpi strong { font-size: 24px; }
.an-d { font-weight: 700; font-size: 12px; } .an-d.up { color: #16a34a; } .an-d.down { color: #ef4444; }
.an-chart-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.an-chart svg { width: 100%; height: auto; display: block; }
.an-bar { fill: var(--accent); opacity: .85; } .an-bar:hover { opacity: 1; }
.an-prev { fill: none; stroke: var(--muted); stroke-width: 2; stroke-dasharray: 5 4; opacity: .8; }
.an-grid { stroke: var(--line); stroke-width: 1; } .an-tk { fill: var(--muted); font-size: 11px; font-family: inherit; }
.an-legend { display: flex; align-items: center; gap: 8px; } .an-l { display: inline-block; width: 18px; height: 8px; border-radius: 3px; }
.an-l.cur { background: var(--accent); } .an-l.prev { border-top: 2px dashed var(--muted); height: 0; margin-left: 10px; }
.ct-row.an-cr, .ct-row.an-tm { grid-template-columns: minmax(0, 1.6fr) 1.1fr .9fr .9fr .9fr .7fr; }
.ct-row.tr { grid-template-columns: minmax(0, 1.5fr) 1fr .9fr .7fr .7fr .8fr .8fr auto; }
.ct-row.cp { grid-template-columns: minmax(0, 1.6fr) .8fr 1.4fr 1fr auto; }
.ct-row.rl { grid-template-columns: minmax(0, 1.5fr) repeat(7, minmax(0, .8fr)) auto; font-size: 12.5px; }
.ct-row.rl.head span { font-size: 11px; line-height: 1.2; }
.rl-table { overflow-x: auto; }
/* Boîte de réception */
.ib-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ib-bar input[type="search"] { flex: 1; min-width: 180px; }
.ib-panes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 16px; align-items: start; }
.ib-list { padding: 6px; max-height: 72vh; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.ib-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; padding: 10px; border: 0; border-radius: 10px; background: transparent; color: var(--fg); font: inherit; text-align: left; cursor: pointer; }
.ib-row:hover { background: var(--surface-2); } .ib-row.on { background: var(--accent-soft); }
.ib-av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; background: var(--accent); color: var(--on-accent, #fff); }
.ib-av.lg { width: 46px; height: 46px; font-size: 18px; }
.ib-main { min-width: 0; display: flex; flex-direction: column; gap: 1px; } .ib-main b { font-size: 14px; } .ib-main small { font-size: 12px; color: var(--muted); }
.ib-prev { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.ib-st, .cp-st { font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.ib-st.wait { background: rgba(239,68,68,.12); color: #ef4444; } .ib-st.open, .cp-st.running { background: rgba(59,130,246,.13); color: #3b82f6; } .ib-st.done, .cp-st.done { background: rgba(34,197,94,.13); color: #16a34a; } .cp-st.paused { background: rgba(245,158,11,.14); color: #d97706; }
.ib-w { font-size: 11.5px; font-weight: 700; color: var(--muted); } .ib-w.mid { color: #d97706; } .ib-w.late { color: #ef4444; }
.ib-prio { font-style: normal; font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 6px; } .ib-prio.p1 { background: rgba(245,158,11,.15); color: #d97706; } .ib-prio.p2 { background: rgba(239,68,68,.14); color: #ef4444; }
.ib-detail { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 0; }
.ib-head { display: flex; align-items: center; gap: 12px; } .ib-head h2 { margin: 0; font-size: 20px; }
.ib-ctl { display: flex; flex-wrap: wrap; gap: 10px; }
.ib-last { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border-left: 3px solid var(--accent); } .ib-last small { font-size: 11.5px; color: var(--muted); } .ib-last p { margin: 3px 0 0; font-size: 14px; }
.ib-lib, .lb-vars, .au-tpl { display: flex; flex-wrap: wrap; gap: 6px; }
.lib-chip { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--fg); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.lib-chip:hover { border-color: var(--accent); color: var(--accent); }
/* Bibliothèque */
.lb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.lb-card { display: flex; flex-direction: column; gap: 8px; } .lb-card h3 { margin: 0; font-size: 15.5px; }
.lb-top { display: flex; align-items: center; justify-content: space-between; }
.lb-fav { border: 0; background: none; font-size: 18px; color: var(--muted); cursor: pointer; opacity: .5; } .lb-fav.on { color: #f59e0b; opacity: 1; }
.lb-text { margin: 0; font-size: 14px; line-height: 1.5; white-space: pre-wrap; flex: 1; } .lb-text mark { background: var(--accent-soft); color: var(--accent); border-radius: 4px; padding: 0 3px; }
.lb-tags { display: flex; flex-wrap: wrap; gap: 5px; } .lb-tags em { font-style: normal; font-size: 11.5px; color: var(--muted); }
.lb-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding-top: 8px; } .lb-foot span { display: flex; gap: 6px; align-items: center; }
.lb-empty { grid-column: 1 / -1; }
.lb-form, .au-form { width: min(100%, 36rem); display: flex; flex-direction: column; gap: 12px; max-height: calc(100vh - 32px); overflow-y: auto; }
.lb-form h2, .au-form h2 { margin: 0; }
.lb-preview { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-size: 14px; white-space: pre-wrap; }
/* Campagnes */
.cp-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cp-form .cp-seg, .cp-form .cp-text, .cp-form .cp-row { grid-column: 1 / -1; }
.cp-seg { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-items: end; }
.cp-seg legend { font-weight: 700; font-size: 13px; padding: 0 6px; }
.cp-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.cp-prev { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.cp-bar { display: block; height: 7px; border-radius: 99px; background: var(--surface-2); overflow: hidden; } .cp-bar i { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.cp-acts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; }
/* Automatisations */
.au-alerts, .au-log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; max-height: 360px; overflow-y: auto; }
.au-alerts li, .au-log li { display: flex; flex-wrap: wrap; gap: 4px 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13.5px; } .au-alerts li:first-child, .au-log li:first-child { border-top: 0; }
.au-alerts li span { flex: 1; } .au-alerts li.new span { font-weight: 600; } .au-alerts small, .au-log small { color: var(--muted); font-size: 12px; } .au-log li span { flex-basis: 100%; color: var(--muted); }
.au-rule { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 14px 0; border-top: 1px solid var(--line); }
.au-rule:first-child { border-top: 0; } .au-rule.off .au-main { opacity: .55; }
.au-main p { margin: 3px 0; font-size: 14px; } .au-acts { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.au-sw { position: relative; width: 40px; height: 22px; cursor: pointer; margin-top: 2px; } .au-sw input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.au-sw i { position: absolute; inset: 0; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); transition: .2s; }
.au-sw i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: .2s; }
.au-sw input:checked + i { background: var(--accent); border-color: var(--accent); } .au-sw input:checked + i::after { left: 20px; background: #fff; }
.au-sw input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
.au-res { margin-top: 8px; padding: 10px; border-radius: 10px; background: var(--surface-2); font-size: 13px; } .au-res ul { margin: 6px 0 0; padding-left: 18px; }
.au-form fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 10px; } .au-form legend { font-weight: 700; padding: 0 6px; }
.au-p { display: flex; flex-wrap: wrap; gap: 10px; } .au-p[hidden] { display: none; } .au-onl { flex-direction: row !important; align-items: center; gap: 8px !important; }
/* Fans : outils */
.fx-csv-l { cursor: pointer; }
.fx-adv { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; padding: 12px; margin-bottom: 12px; border-radius: 12px; background: var(--surface-2); }
.fx-adv label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); } .fx-adv input[type="number"] { width: 100px; }
.fx-tagbox { padding: 12px; margin-bottom: 12px; border-radius: 12px; background: var(--surface-2); }
/* Admin offres */
.ap-plan { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin-bottom: 10px; } .ap-plan summary { cursor: pointer; }
.ap-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 12px 0; } .ap-grid .wide { grid-column: 1 / -1; }
.ap-feats { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; font-size: 13px; } .ap-feats label { display: flex; gap: 6px; align-items: center; }
@media (max-width: 1100px) { .ib-panes { grid-template-columns: 1fr; } .cp-seg { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cp-form { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .an-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .cp-form, .cp-seg, .ap-grid { grid-template-columns: 1fr; }
  .ct-row.an-cr, .ct-row.an-tm, .ct-row.tr, .ct-row.cp { grid-template-columns: minmax(0, 1.4fr) 1fr 1fr; }
  .ct-row.an-cr > span:nth-child(n+4), .ct-row.an-tm > span:nth-child(n+4), .ct-row.tr > span:nth-child(n+4):not(:last-child), .ct-row.cp > span:nth-child(4) { display: none; }
  .au-rule { grid-template-columns: auto minmax(0, 1fr); } .au-acts { grid-column: 1 / -1; justify-content: flex-start; }
}
.card.an-filters, .card.ib-bar { display: flex; flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: flex-start; }
.card.ib-bar { align-items: center; }

/* Bibliothèque : médias du coffre et prix */
.lb-media { display: flex; flex-wrap: wrap; gap: 6px; } .lb-media span { padding: 3px 9px; border-radius: 8px; background: var(--surface-2); font-size: 12px; color: var(--muted); }
.lb-media b { color: var(--fg); font-weight: 600; } .lb-media .lb-ppv { background: rgba(245,158,11,.14); color: #d97706; font-weight: 700; }
.lb-mfs { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; } .lb-mfs legend { font-weight: 700; font-size: 13px; padding: 0 6px; }
.lb-mfs p { margin: 0; }
.lb-mrow { display: grid; grid-template-columns: 44px 110px 1fr 64px auto; gap: 8px; align-items: center; }
.lb-th { width: 44px; height: 44px; border-radius: 9px; border: 1px dashed var(--line); display: grid; place-items: center; cursor: pointer; overflow: hidden; color: var(--muted); background: var(--bg); }
.lb-th:hover { border-color: var(--accent); color: var(--fg); } .lb-th .i { width: 18px; height: 18px; }
.lb-th img { width: 100%; height: 100%; object-fit: cover; } .lb-th.busy { opacity: .5; cursor: wait; }
.lb-mfoot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lb-blur { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); cursor: pointer; }
.lb-thumbs { display: flex; gap: 6px; flex-wrap: wrap; } .lb-thumbs img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); }
.lb-media span { display: inline-flex; align-items: center; gap: 5px; } .lb-media .i { width: 13px; height: 13px; }
.lb-mrow select, .lb-mrow input { padding: 7px 9px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font: inherit; font-size: 13.5px; }
.lb-mrow .pl-x { position: static; }
#cp-vault { min-width: 260px; } #cp-price { width: 100px; }

/* Rôles et permissions : une carte par membre, droits par famille */
.rl-how { margin-bottom: 14px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.rl-how summary { cursor: pointer; font-weight: 700; font-size: 14px; }
.rl-how ol { margin: 10px 0 2px; padding-left: 20px; display: flex; flex-direction: column; gap: 7px; font-size: 13px; line-height: 1.55; color: var(--muted); }
.rl-how ol b { color: var(--fg); }
.rl-need { display: block; margin-top: 1px; color: var(--accent); font-size: 11px; font-weight: 700; }
.rl-roles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.rl-roles > div { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); } .rl-roles small { margin-left: 6px; color: var(--muted); font-size: 11.5px; }
.rl-roles ul { margin: 6px 0 0; padding-left: 18px; font-size: 13px; line-height: 1.6; }
.rl-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 12px; }
.rl-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.rl-head small { display: block; color: var(--muted); font-size: 12px; }
.rl-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.rl-group { display: flex; flex-direction: column; gap: 5px; } .rl-group > small { font-weight: 700; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.rl-group label { display: flex; gap: 7px; align-items: flex-start; font-size: 13px; line-height: 1.35; } .rl-group label.off { opacity: .45; }
.rl-group input { margin-top: 2px; }
@media (max-width: 760px) { .rl-roles { grid-template-columns: 1fr; } }
/* Offres : limites de taille */
.plan .caps { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; } .plan .caps li b { font-weight: 700; }

/* Offres sans équipe : on cache ce qui parle de chatters */
body.solo .team-only { display: none !important; }
#lb-fan { width: 150px; }
.lb-mfs .lb-blur { flex-direction: row !important; align-items: center; gap: 7px; font-weight: 500; } .lb-mfs .lb-blur input { width: 15px; height: 15px; padding: 0; margin: 0; accent-color: var(--accent); }
.of-step { grid-template-columns: 26px 44px minmax(0, 1fr) minmax(10rem, 15rem); } .of-step .lb-th { width: 40px; height: 40px; } .of-blur { margin: 2px 0 8px; }
@media (max-width: 640px) { .of-step { grid-template-columns: 26px 44px minmax(0, 1fr); } }
.lb-media span { max-width: 100%; min-width: 0; } .lb-media .lb-mt { font-style: normal; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Script PPV : résumé + frise des étapes */
.lb-ssum { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -2px; }
.lb-ssum span { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 650; color: var(--muted); background: var(--surface-2); }
.lb-ssum .gold { color: #f5b941; background: rgba(245,185,65,.12); } .lb-ssum .i { width: 12px; height: 12px; }
.lb-steps { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.lb-steps li { position: relative; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; }
.lb-steps li:not(:last-child)::before { content: ""; position: absolute; left: 12px; top: 28px; bottom: -12px; width: 2px; border-radius: 2px; background: var(--line); }
.lb-steps li .lb-sn { width: 26px; height: 26px; background: var(--surface-2); border-color: var(--line); color: var(--fg); position: relative; z-index: 1; }
.lb-steps li.paid .lb-sn { background: rgba(245,185,65,.16); border-color: rgba(245,185,65,.55); color: #f5b941; }
.lb-sb { min-width: 0; padding: 9px 11px 10px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.lb-steps li.paid .lb-sb { border-color: rgba(245,185,65,.28); background: linear-gradient(180deg, rgba(245,185,65,.06), transparent 70%), var(--surface-2); }
.lb-sh { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lb-sh b { font-size: 13px; font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-sh em { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 21px; padding: 0 8px; border-radius: 999px; font-style: normal; font-size: 11px; font-weight: 700; color: var(--muted); background: var(--bg); border: 1px solid var(--line); }
.lb-steps li.paid .lb-sh em { color: #1a1206; background: #f5b941; border-color: #f5b941; } .lb-sh em .i { width: 11px; height: 11px; }
.lb-sb p { margin: 0; font-size: 13.5px; line-height: 1.5; }
.lb-brief { display: flex; align-items: flex-start; gap: 6px; margin: 0; padding: 6px 9px; border-radius: 8px; border: 1px dashed var(--line); font-size: 12px; color: var(--muted); }
.lb-brief .i { width: 13px; height: 13px; flex: none; margin-top: 1px; } .lb-brief b { color: var(--fg); font-weight: 600; }
.dl .dl-main { background: var(--accent); border-color: var(--accent); color: var(--on-accent, #fff); } .dl .dl-main .i { stroke: #fff; }
.lb-sb .lb-media, .lb-sb .lb-thumbs { margin: 0; } .lb-sb .lb-thumbs img { width: 64px; height: 64px; border-radius: 9px; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.lb-sn { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; border: 1px solid var(--line); color: var(--muted); }
.lb-steps small { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; color: var(--muted); } .lb-steps small.paid { color: #d97706; } .lb-steps small .i { width: 12px; height: 12px; }
.lb-steps p { margin: 2px 0 6px; font-size: 13.5px; line-height: 1.45; }
.lb-sform .lb-step { position: relative; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 8px; margin: 0 0 10px; }
.lb-sform .lb-step legend { font-weight: 700; font-size: 13px; padding: 0 6px; }
.lb-sform .lb-step-del { position: absolute; top: 6px; right: 8px; }
.lb-sform .lb-steps-ed { max-height: 52vh; overflow: auto; padding-right: 2px; }
.lb-steps mark { background: var(--accent-soft); color: var(--accent); border-radius: 6px; padding: 1px 6px; font-size: .92em; font-weight: 600; }
.lb-form .lb-blur { flex-direction: row !important; align-items: center; gap: 7px; font-weight: 500; } .lb-form .lb-blur input { width: 15px; height: 15px; padding: 0; margin: 0; accent-color: var(--accent); }

/* Le logo Velora (10/11/2026 : « A · Sillage », public/icon.svg, dossier public/brand) partout où l'appli affiche son
   logo : l'icône (squircle violet, V à trois flux) donne elle-même sa forme ; en petit (32 px et moins), la version à deux flux */
.logo, .brand .logo, .brand.lg .logo, .welcome-mark .logo, .lock-pitch .brand .logo, .web-gate .logo,
.studio .lock-pitch .brand .logo, .studio .web-gate .logo, .sm-logo { background: url("/icon.svg?v=4") center / contain no-repeat !important; color: transparent !important; font-size: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.side .brand .logo, .sm-logo, .mob-top .logo, .m-head .logo { background-image: url("/brand/icon-small.svg?v=2") !important; }

/* offres : « Tout Starter inclus » bien visible (on comprend que chaque offre contient la précédente) */
.inherit { display: flex; gap: 9px; align-items: flex-start; margin: 2px 0 6px; padding: 9px 11px; border-radius: 10px; background: rgba(140, 140, 139, .1); border: 1px solid rgba(140, 140, 139, .28); list-style: none; }
.inherit b { display: block; font-weight: 700; } .inherit small { display: block; margin-top: 2px; opacity: .75; font-size: 12px; line-height: 1.35; }

/* Mon offre : la case « Avec le coach 1:1 » sur la carte Starter (offre Starter + Coach) */
.plan-variant { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0 10px; padding: 10px 12px; border-radius: 12px; border: 1px dashed rgba(140, 140, 139, .45); cursor: pointer; font-size: 13px; }
.plan-variant.on { border-style: solid; background: rgba(140, 140, 139, .1); }
.plan-variant input { margin-top: 3px; accent-color: #8c8c8b; } .plan-variant b { white-space: nowrap; } .plan-variant small { display: block; margin-top: 2px; opacity: .7; font-size: 12px; }

/* offres avec le coach (options de Starter / Pro) : leur badge de cadenas dans le menu et sur les écrans verrouillés */
.nav button[data-lock-plan="starter_coach"]::after, .nav button[data-lock-plan="pro_coach"]::after { --lk-i: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222.2%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2211%22 cy=%2213%22 r=%228%22/%3E%3Ccircle cx=%2211%22 cy=%2213%22 r=%223.5%22/%3E%3Cpath d=%22M11 13 19 5%22/%3E%3Cpath d=%22M15.5 4.5H19.5V8.5%22/%3E%3C/svg%3E"); }
[data-lock-plan="starter_coach"], .lock-tag[data-plan="starter_coach"], [data-plan="starter_coach"] > .db-lock-ico, #lk-card[data-plan="starter_coach"] { --lk-c: #afafae; }
[data-lock-plan="pro_coach"], .lock-tag[data-plan="pro_coach"], [data-plan="pro_coach"] > .db-lock-ico, #lk-card[data-plan="pro_coach"] { --lk-c: var(--accent); }

/* Mon offre, version simple (26/10/2026) : cartes courtes, le détail dans « Comparer les offres » */
.plan.pl2 { gap: 10px; }
.plan.pl2 .plan-billed { margin: -4px 0 0; }
.plan.pl2 .plan-for { margin: 0; font-size: 13px; line-height: 1.45; color: var(--fg-2, var(--muted)); min-height: 3.9em; }
.plan.pl2 .plan-variant { margin: 0; }
.plan.pl2 .feat { margin-top: 2px; }
.plan.pl2 .feat li.inh { list-style: none; padding: 8px 10px; margin: 0 0 4px; border-radius: 10px; background: rgba(140, 140, 139, .08); font-size: 12.5px; }
.plan.pl2 .feat li.inh::before { content: none; }
.plan.pl2 .feat li.more-link { list-style: none; } .plan.pl2 .feat li.more-link::before { content: none; }
.plan-cmp { margin-top: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.plan-cmp summary { cursor: pointer; padding: 12px 16px; font-weight: 700; }
.plan-cmp .cmp-wrap { overflow-x: auto; padding: 0 12px 12px; }
.plan-cmp table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.plan-cmp th, .plan-cmp td { padding: 7px 8px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
.plan-cmp th:first-child, .plan-cmp td:first-child { text-align: left; white-space: normal; min-width: 180px; }
.plan-cmp th small { display: block; font-weight: 500; color: var(--muted); }
.plan-cmp th.cur { color: var(--accent); }
.plan-cmp tr.grp td { text-align: left; font-weight: 700; color: var(--muted); text-transform: uppercase; font-size: 11px; letter-spacing: .04em; padding-top: 14px; }

/* ---------- Page « Ouvre Velora Studio » (navigateur), dans la DA du site (26/10/2026) ---------- */
.studio .web-gate.wg2 { display: block; position: relative; min-height: 100vh; padding: 0; overflow-x: hidden; background: var(--bg); }
.studio .web-gate.wg2[hidden] { display: none; }
.wg2-glow { position: absolute; inset: 0 0 auto; height: 720px; pointer-events: none; background: radial-gradient(60% 55% at 50% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%); }
.wg2-hd { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; width: min(1180px, 100% - 48px); height: 72px; margin: 0 auto; }
.wg2-hd .brand { text-decoration: none; }
.wg2 .wg-acc { padding: 6px 8px 6px 6px; gap: 10px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 80%, transparent); }
.wg2 .wg-av { width: 30px; height: 30px; font-size: 13px; }
.wg2 .wg-acc b { font-size: 13.5px; line-height: 1.2; } .wg2 .wg-acc small { font-size: 12px; max-width: 220px; }
.wg2-hero { position: relative; z-index: 1; width: min(1120px, 100% - 48px); margin: 0 auto; padding: clamp(28px, 5vw, 64px) 0 56px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.wg2 .wg-steps { flex-direction: row; justify-content: center; gap: 8px; margin: 0 0 30px; }
.wg2 .wg-steps li { align-items: center; gap: 10px; padding: 7px 16px 7px 7px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); text-align: left; }
.wg2 .wg-steps li:not(:last-child)::before { content: none; }
.wg2 .wg-steps li > span { width: 26px; height: 26px; font-size: 12px; }
.wg2 .wg-steps li.on { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.wg2 .wg-steps b { font-size: 13.5px; } .wg2 .wg-steps small { margin: 0; font-size: 12px; }
.wg2 .wg-msg { margin: 0 0 18px; }
.studio .wg2 h1 { margin: 0; max-width: 820px; font-size: clamp(40px, 6vw, 66px); line-height: 1.06; letter-spacing: -.022em; font-weight: 600; text-wrap: balance; }
.studio .wg2 h1 em { font-style: normal; color: var(--accent); }
.wg2 .wg-lead { margin: 20px auto 0; max-width: 640px; text-wrap: balance; font-size: clamp(16px, 1.5vw, 18px); line-height: 1.6; color: var(--fg-2, var(--muted)); }
.wg2-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.wg2-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 50px; padding: 0 26px; border-radius: 10px; font: 600 15.5px/1 var(--font-body); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: filter .2s, background .2s; }
.wg2-btn .i { width: 18px; height: 18px; }
.wg2-btn.primary { background: var(--accent); color: var(--on-accent, #fff); box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--accent) 70%, transparent); }
.wg2-btn.primary:hover { filter: brightness(1.08); }
.wg2-btn.ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.wg2-btn.ghost:hover { background: var(--surface); }
.wg2-btn[hidden] { display: none; }
.wg2 .wg-os { margin: 16px 0 0; font-size: 13px; }
.wg2-shot { margin: clamp(40px, 5vw, 64px) 0 0; width: 100%; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #0e0e12; box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 40px 90px -30px rgba(0, 0, 0, .65); }
.wg2-shot-bar { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: #17171c; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.wg2-shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3a42; }
.wg2-shot-bar span { margin-left: 10px; font-size: 12px; font-weight: 500; color: #8b8b97; }
.wg2-shot img { display: block; width: 100%; height: auto; }
.wg2-foot { width: min(100%, 760px); margin-top: 28px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.wg2 .wg-help { display: flex; gap: 12px; align-items: flex-start; text-align: left; width: 100%; padding: 16px 18px; background: var(--surface); }
.wg2 .wg-help > .i { width: 20px; height: 20px; color: var(--accent); margin-top: 1px; }
.wg2 .wg-links { flex-wrap: wrap; align-items: center; }
.wg2-safe { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.wg2-safe .i { width: 14px; height: 14px; }
@media (max-width: 760px) {
  .wg2 .wg-acc div { display: none; }
  .wg2 .wg-steps { flex-direction: column; align-items: stretch; width: 100%; }
  .wg2-cta, .wg2-btn { width: 100%; }
}
/* Mon offre : les limites par jour sous le bouton (le détail par mois est dans « Comparer les offres ») */
.plan.pl2 .plan-q { list-style: none; margin: 0; padding: 10px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); }
.plan.pl2 .plan-q:empty { display: none; }
.plan.pl2 .plan-q li { display: flex; justify-content: space-between; gap: 8px; }
.plan.pl2 .plan-q b { color: var(--fg); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Page « Ouvre Velora Studio » : les couleurs du site (vitrine.css), pas celles de l'appli ; sans capture (26/10/2026) */
.studio .web-gate.wg2 { --bg: #0b0b0e; --surface: #141418; --surface-2: #1a1a20; --line: rgba(255, 255, 255, .08); --fg: #ededf0; --fg-2: #c6c6ce; --muted: #8b8b97; --accent: #8c8c8b; --accent-soft: rgba(140, 140, 139, .1); color: var(--fg); background: var(--bg); }
:root[data-theme="light"] .studio .web-gate.wg2 { --bg: #ffffff; --surface: #ffffff; --surface-2: #f4f4f7; --line: #e7e7ec; --fg: #0d0d12; --fg-2: #3a3a45; --muted: #6b6b78; --accent: #797978; --accent-soft: rgba(121, 121, 120, .07); }
.wg2-glow { height: 560px; background: radial-gradient(50% 50% at 50% 0%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%); }
.wg2-hero { min-height: calc(100vh - 72px); justify-content: center; padding: 24px 0 48px; }
.studio .wg2 .wg-msg { align-self: center; }
.wg2-foot { margin-top: 40px; }

/* ---------- Instagram des créatrices (public/insta.js) ---------- */
.ig-pick { min-width: 200px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); font: inherit; font-weight: 600; }
.card.ig-head { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 16px; flex-wrap: wrap; text-align: left; }
.ig-av { width: 56px; height: 56px; flex: none; border-radius: 18px; display: grid; place-items: center; font-size: 24px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #8c8c8b, #7b7b7a); }
.ig-id { flex: 1; min-width: 180px; } .ig-id h2 { margin: 0; } .ig-id p { margin: 2px 0 0; } .ig-id a { color: inherit; }
.ig-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ig-chip { padding: 5px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 650; background: var(--surface-2); color: var(--muted); }
.ig-chip.ok { background: rgba(34,197,94,.14); color: #22c55e; } .ig-chip.mid { background: rgba(245,158,11,.14); color: #f59e0b; } .ig-chip.bad { background: rgba(239,68,68,.14); color: #ef4444; }
.ig-head-act { display: flex; align-items: center; gap: 12px; }
.ig-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.ig-tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font: inherit; font-weight: 650; cursor: pointer; }
.ig-tabs button .i { width: 16px; height: 16px; }
.ig-tabs button[aria-selected="true"] { color: var(--fg); border-color: var(--accent); background: var(--accent-soft); }
.ig-note { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--accent); } .ig-note .i { width: 16px; height: 16px; }
.ig-busy { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 650; } .ig-busy .i { width: 18px; height: 18px; color: var(--accent); animation: igSpin 1.2s linear infinite; }
@keyframes igSpin { to { transform: rotate(360deg); } }
.card.ig-audit { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 20px; text-align: left; }
.ig-score { width: 104px; height: 104px; flex: none; border-radius: 50%; display: grid; place-content: center; text-align: center; border: 6px solid currentColor; }
.ig-score b { font-size: 34px; line-height: 1; } .ig-score small { color: var(--muted); }
.ig-score.ok { color: #22c55e; } .ig-score.mid { color: #f59e0b; } .ig-score.bad { color: #ef4444; }
.ig-audit-t h2 { margin: 0 0 6px; } .ig-audit-t p { margin: 0 0 4px; }
.ig-prio { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; line-height: 1.5; }
.ig-points { display: flex; flex-direction: column; }
.ig-pt { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); } .ig-pt:first-child { border-top: 0; }
.ig-pt p { margin: 3px 0 0; line-height: 1.5; }
.ig-st { flex: none; width: 92px; text-align: center; padding: 4px 0; border-radius: 8px; font-size: 12px; font-weight: 700; }
.ig-st.ok { background: rgba(34,197,94,.14); color: #22c55e; } .ig-st.bad { background: rgba(239,68,68,.14); color: #ef4444; } .ig-st.unk { background: var(--surface-2); color: var(--muted); }
.ig-copy { display: grid; grid-template-columns: 70px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); } .ig-copy:first-of-type { border-top: 0; }
.ig-copy p { margin: 0; } .ig-bio { white-space: pre-line; }
.ig-redo summary { cursor: pointer; font-weight: 650; } .ig-redo[open] summary { margin-bottom: 12px; }
.ig-ck { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-top: 1px solid var(--line); cursor: pointer; }
.ig-ck:first-of-type { border-top: 0; }
.ig-ck input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.ig-ck span { flex: 1; } .ig-ck b { display: block; } .ig-ck small { display: block; margin-top: 2px; color: var(--muted); line-height: 1.45; }
.ig-ck.done b { text-decoration: line-through; color: var(--muted); }
.ig-ck.now { margin: 0 -12px; padding: 11px 12px; border-radius: 12px; background: var(--accent-soft); border-top-color: transparent; }
.ig-ck.past:not(.done) b::after { content: " · en retard"; color: #f59e0b; font-weight: 600; font-size: 12px; }
.ig-src { flex: none; font-style: normal; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.ig-src.off { background: rgba(59,130,246,.14); color: #60a5fa; }
.ig-bar { flex: 1; max-width: 160px; height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-left: auto; } .ig-bar span { display: block; height: 100%; background: var(--accent); }
.ig-strat p { line-height: 1.6; margin: 0 0 10px; }
.ig-pillars { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; } .ig-pillars span { padding: 5px 11px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12.5px; font-weight: 700; cursor: help; }
.ig-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.ig-day { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); }
.ig-day.today { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ig-day.done > :not(.ig-res):not(.ig-day-h):not(.ig-swap) { opacity: .55; }
.ig-day-h { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; cursor: pointer; }
.ig-day-h input { width: 17px; height: 17px; accent-color: var(--accent); }
.ig-fmt { padding: 2px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 700; background: var(--surface-2); }
.ig-fmt.f-reel { background: rgba(140, 140, 139, .15); color: #8c8c8b; } .ig-fmt.f-carrousel { background: rgba(123, 123, 122, .16); color: #9d9d9c; } .ig-fmt.f-story { background: rgba(245,158,11,.15); color: #f59e0b; } .ig-fmt.f-collab, .ig-fmt.f-live { background: rgba(34,197,94,.14); color: #22c55e; }
.ig-today { margin-left: auto; font-size: 11px; font-weight: 800; color: var(--accent); text-transform: uppercase; letter-spacing: .04em; }
.ig-hook { margin: 10px 0 6px; font-weight: 700; font-size: 15px; }
.ig-day > p { margin: 0 0 8px; line-height: 1.5; font-size: 13.5px; }
.ig-day dl { margin: 0; display: grid; grid-template-columns: 62px 1fr; gap: 4px 8px; font-size: 12.5px; } .ig-day dt { color: var(--muted); } .ig-day dd { margin: 0; line-height: 1.45; }
.ig-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.ig-kpis div { padding: 12px 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); } .ig-kpis small { display: block; color: var(--muted); } .ig-kpis b { font-size: 22px; }
.ig-chart { width: 100%; max-width: 820px; height: auto; display: block; margin: 4px 0 12px; }
.ig-chart .ln { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linejoin: round; } .ig-chart .area { fill: var(--accent-soft); } .ig-chart circle { fill: var(--accent); } .ig-chart text { fill: var(--muted); font-size: 11px; }
.ig-snap { display: flex; flex-wrap: wrap; gap: 8px; } .ig-snap input { padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font: inherit; width: 140px; }
.ig-hist { margin-top: 12px; } .ig-hist summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.ig-hist ul { list-style: none; margin: 8px 0 0; padding: 0; } .ig-hist li { display: flex; gap: 12px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); font-size: 13.5px; } .ig-hist li .linkish { margin-left: auto; }
.ig-links { display: flex; flex-direction: column; } .ig-links div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); } .ig-links div:first-child { border-top: 0; } .ig-links span { color: var(--muted); font-size: 13.5px; }
.ig-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; line-height: 1.55; }
@media (max-width: 700px) { .card.ig-audit { flex-direction: column; align-items: flex-start; } .ig-copy { grid-template-columns: 1fr; } .ig-kpis { grid-template-columns: 1fr; } }
.ig-risk { margin: 8px 0 0; padding: 6px 10px; border-radius: 8px; background: rgba(245,158,11,.12); color: #f59e0b; font-size: 12.5px; font-weight: 600; }
.upd-bar { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 950; display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--accent); box-shadow: 0 18px 50px rgba(0,0,0,.45); font-weight: 650; font-size: 14px; }
.upd-bar .i { width: 18px; height: 18px; color: var(--accent); }
.pg-safe { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); cursor: pointer; }
.pg-safe input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.pg-safe small.muted { display: block; margin-top: 4px; line-height: 1.45; }
.pg-reco { padding: 2px 7px; border-radius: 999px; background: rgba(34,197,94,.14); color: #22c55e; font-weight: 700; font-size: 11px; }
.pg-warn { margin: 0; padding: 10px 12px; border-radius: 10px; background: rgba(245,158,11,.12); color: #f59e0b; font-size: 13px; line-height: 1.45; }
/* Instagram : la carte de sa niche (formats, à éviter, heures) et l'âge du compte sur chaque jour du plan */
.ig-niche > summary { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; cursor: pointer; list-style: none; }
.ig-niche > summary::-webkit-details-marker { display: none; }
.ig-niche > summary .i { width: 18px; height: 18px; color: var(--accent); }
.ig-niche-g { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; margin-top: 14px; }
.ig-niche h3 { margin: 14px 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); } .ig-niche h3:first-child { margin-top: 0; }
.ig-niche ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.ig-niche li { display: flex; flex-direction: column; gap: 2px; padding: 9px 11px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); font-size: 13px; line-height: 1.45; }
.ig-niche li em { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--accent); }
.ig-niche .ig-avoid li { border-color: rgba(245,158,11,.35); background: rgba(245,158,11,.07); }
.ig-niche p { margin: 0 0 6px; line-height: 1.5; }
.ig-niche .ig-pillars span { cursor: copy; }
.ig-acct { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: var(--surface-2); color: var(--muted); }
.ig-fmt.f-preparation { background: rgba(56,189,248,.15); color: #38bdf8; }
@media (max-width: 900px) { .ig-niche-g { grid-template-columns: 1fr; } }
/* Instagram : fiche « qui est-elle », vues des Reels, bilan de la semaine, « Pas pour elle » */
.ig-who > summary { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; cursor: pointer; list-style: none; }
.ig-who > summary::-webkit-details-marker { display: none; }
.ig-who > summary .i { width: 18px; height: 18px; color: var(--accent); }
.ig-who form { margin-top: 14px; display: flex; flex-direction: column; gap: 14px; }
.ig-who-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px 18px; }
.ig-who-g { border: 0; margin: 0; padding: 0; min-width: 0; }
.ig-who-g legend { font-size: 12.5px; font-weight: 700; color: var(--muted); margin-bottom: 6px; padding: 0; }
.ig-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.ig-opt input { position: absolute; opacity: 0; pointer-events: none; }
.ig-opt span { display: inline-block; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); font-size: 12.5px; cursor: pointer; transition: .15s; }
.ig-opt input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 700; }
.ig-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.ig-res { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line); }
.ig-res input { width: 92px; padding: 5px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); color: inherit; font-size: 12.5px; }
.ig-swap { margin-top: 8px; font-size: 12.5px; }
.ig-bilan { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: var(--accent-soft); font-size: 13.5px; line-height: 1.5; }
.ig-bilan .i { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--accent); }
/* Instagram : le plan plus lisible (semaines repliables, un jour = une carte claire) */
.ig-week > summary { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; cursor: pointer; list-style: none; }
.ig-week > summary::-webkit-details-marker { display: none; }
.ig-week > summary::after { content: "▾"; margin-left: auto; color: var(--muted); transition: transform .2s; }
.ig-week:not([open]) > summary::after { transform: rotate(-90deg); }
.ig-week[open] > summary { margin-bottom: 14px; }
.igw-t { display: flex; align-items: baseline; gap: 10px; } .igw-t h2 { margin: 0; font-size: 17px; }
.igw-mix { display: flex; flex-wrap: wrap; gap: 5px; }
.igw-prog { display: flex; align-items: center; gap: 8px; } .igw-prog .ig-bar { width: 110px; }
.igd-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 12px; }
.igd { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 14px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); overflow: hidden; }
.igd::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--line); }
.igd.fk-reel::before { background: #8c8c8b; } .igd.fk-carrousel::before { background: #9d9d9c; } .igd.fk-story::before { background: #f59e0b; } .igd.fk-collab::before, .igd.fk-live::before { background: #22c55e; } .igd.fk-preparation::before { background: #38bdf8; }
.igd.today { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.igd.done > :not(.igd-h):not(.igd-f) { opacity: .5; }
.igd-h { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; }
.igd-ck { position: relative; display: inline-flex; cursor: pointer; }
.igd-ck input { position: absolute; opacity: 0; pointer-events: none; }
.igd-ck span { width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--line); display: grid; place-items: center; transition: .15s; }
.igd-ck .i { width: 14px; height: 14px; opacity: 0; color: #fff; }
.igd-ck input:checked + span { background: #22c55e; border-color: #22c55e; } .igd-ck input:checked + span .i { opacity: 1; }
.igd-ck input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.igd-when { display: flex; flex-direction: column; line-height: 1.1; min-width: 74px; } .igd-when b { font-size: 16px; } .igd-when small { color: var(--muted); font-size: 11.5px; }
.igd-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-left: auto; }
.igd-pil { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.igd-idea { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: rgba(140, 140, 139, .14); color: #8c8c8b; } .igd-idea .i { width: 12px; height: 12px; }
.igd small, .igi-sec > small { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.igd .igd-when small { text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 11.5px; margin: 0; }
.igd p { margin: 0; line-height: 1.5; font-size: 13.5px; }
.igd-hook { position: relative; padding: 10px 70px 10px 12px; border-radius: 10px; background: linear-gradient(135deg, rgba(140, 140, 139, .12), rgba(157, 157, 156, .12)); border: 1px solid rgba(140, 140, 139, .25); }
.igd-hook p { font-size: 16px; font-weight: 750; line-height: 1.35; }
.igd-copy { position: absolute; top: 8px; right: 8px; padding: 3px 9px; border-radius: 7px; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); font-size: 11.5px; font-weight: 700; cursor: pointer; }
.igd-copy:hover { border-color: var(--accent); color: var(--accent); }
.igd-more { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; padding-top: 8px; border-top: 1px dashed var(--line); }
.igd-more > div { position: relative; } .igd-more .igd-cap { grid-column: 1 / -1; padding-right: 66px; }
.igd-more p { font-size: 12.5px; color: var(--muted); }
.igd-f { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.igd-f .ig-res { margin: 0; padding: 0; border: 0; } .igd-f .ig-swap { margin: 0; }
/* Idées qui percent */
.igt-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.igt { padding: 11px 13px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.igt p { margin: 0; font-size: 13px; line-height: 1.45; } .igt a { font-size: 12px; color: var(--accent); }
.igi-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(440px, 1fr)); gap: 14px; margin-bottom: 16px; }
.igi { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.igi-h { display: flex; gap: 12px; align-items: flex-start; } .igi-h h3 { margin: 0 0 6px; font-size: 16px; line-height: 1.3; }
.igi-n { flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; background: var(--accent-soft); color: var(--accent); }
.igi-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.igi-why { display: flex; gap: 8px; margin: 0; padding: 9px 11px; border-radius: 10px; background: rgba(245,158,11,.09); font-size: 13px; line-height: 1.45; } .igi-why .i { flex: none; width: 16px; height: 16px; color: #f59e0b; margin-top: 2px; }
.igi-sec { position: relative; } .igi-sec p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); } .igi-sec.igd-cap { padding-right: 66px; }
.igi-hook { position: relative; display: flex; align-items: center; gap: 9px; padding: 8px 70px 8px 10px; margin-top: 6px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); cursor: pointer; font-weight: 700; font-size: 14px; }
.igi-hook:has(input:checked) { border-color: #8c8c8b; background: rgba(140, 140, 139, .08); }
.igi-hook input { accent-color: #8c8c8b; } .igi-hook .igd-copy { top: 50%; transform: translateY(-50%); }
.igi-plans { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; line-height: 1.45; }
.igi-look { position: relative; display: flex; gap: 8px; margin: 0; padding: 8px 70px 8px 10px; border-radius: 10px; background: var(--surface-2); font-size: 12.5px; } .igi-look .i { flex: none; width: 15px; height: 15px; color: var(--accent); margin-top: 1px; }
.igi-f { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); }
.igi-f select { flex: 1; min-width: 0; padding: 7px 9px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg); color: inherit; font-size: 12.5px; }
@media (max-width: 760px) { .igd-list, .igi-list { grid-template-columns: 1fr; } .igd-more { grid-template-columns: 1fr; } }
/* Instagram : sa DA vidéo */
.ig-da > summary { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; cursor: pointer; list-style: none; }
.ig-da > summary::-webkit-details-marker { display: none; }
.ig-da > summary .i { width: 18px; height: 18px; color: var(--accent); }
.ig-da form { margin-top: 14px; }
.ig-niche:not([open]), .ig-who:not([open]), .ig-da:not([open]), .ig-week:not([open]) { padding-top: 14px; padding-bottom: 14px; }
.ig-niche:not([open]) > summary, .ig-who:not([open]) > summary, .ig-da:not([open]) > summary { margin: 0; }
/* sa photo de profil en bas à droite (et l'espace où il est) */
.me-float { position: fixed; right: 18px; bottom: 18px; z-index: 80; display: flex; align-items: center; gap: 9px; padding: 5px 14px 5px 5px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: inherit; box-shadow: 0 10px 30px rgba(0,0,0,.35); cursor: pointer; transition: border-color .15s, transform .15s; }
.me-float:hover { border-color: var(--accent); transform: translateY(-1px); }
.me-float .avatar { width: 34px; height: 34px; font-size: 14px; flex: none; }
.mf-txt { display: flex; flex-direction: column; line-height: 1.15; text-align: left; } .mf-txt b { font-size: 13px; } .mf-txt small { font-size: 11px; color: var(--muted); }
.me-float[aria-current="page"] { border-color: var(--accent); }
@media (max-width: 760px) { .me-float { display: none; } }
/* Comptes connectés : les étapes pour afficher les revenus (sans emoji, plus pro) */
.of-next.of-steps { display: flex; flex-direction: column; gap: 14px; padding: 16px 18px; border-style: solid; border-color: color-mix(in srgb, var(--accent) 22%, var(--line)); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 8%, transparent), color-mix(in srgb, var(--accent-2, var(--accent)) 4%, transparent)); }
.of-steps-h { display: flex; gap: 12px; align-items: flex-start; }
.of-steps-h b { display: block; font-size: 14.5px; margin-bottom: 2px; }
.of-steps-h small { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.of-steps-ico { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.of-steps-ico .i { width: 18px; height: 18px; }
.of-next ol.of-step-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; color: inherit; }
.of-step-list li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.of-step-list li b { display: block; font-size: 13px; line-height: 1.35; }
.of-step-list li small { display: block; font-size: 12px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.of-n { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--accent); color: var(--on-accent, #fff); }
.of-next > .btn-main.of-go { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.of-go .i { width: 15px; height: 15px; }
.of-refresh { display: inline-flex; align-items: center; gap: 7px; }
.of-refresh .i { width: 15px; height: 15px; color: var(--muted); }
.of-sync { display: inline-flex; align-items: center; gap: 6px; }
.of-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 22%, transparent); }
@media (max-width: 900px) { .of-next ol.of-step-list { grid-template-columns: 1fr; } }
/* rubrique « Claude · dépense » (admin) : même largeur que les autres pages */
.claude-wrap { max-width: 900px; margin: 0 auto; padding: 4px 22px 40px; }
.nav-admin { margin-left: auto; padding: 2px 7px; border-radius: 6px; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; background: rgba(157, 157, 156, .16); color: #9d9d9c; }

/* ---------- offre sur mesure dans « Mon offre » (27/10/2026) : l'écran vient de public/offer-ui.{js,css} ---------- */
.plans.ob { display: block; }
.plans.ob .ou-sum { top: 16px; }
.sub-opts { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 5px; }
.sub-opts span { padding: 2px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--fg); font-size: 12px; font-weight: 600; }

/* Admin : options d'une offre sur mesure offerte */
.adm-opts-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin: 12px 0; font-size: 13px; }
.adm-opts-list label, .adm-opts-crea { display: flex; align-items: center; gap: 7px; cursor: pointer; }
.adm-opts-crea { font-size: 13px; font-weight: 600; } .adm-opts-crea input { width: 70px; }

/* Discord : ton rôle sur le serveur (Mon offre) */
.dc-card h2 { display: flex; align-items: center; gap: 8px; } .dc-logo { width: 20px; height: 20px; color: #5865f2; flex: none; }
.dc-card .btn-main.dc-go { background: #5865f2; border-color: #5865f2; color: #fff; box-shadow: none; } .dc-go .dc-logo { color: #fff; width: 16px; height: 16px; margin-right: 6px; }
.dc-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
.dc-roles { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.dc-roles span { padding: 4px 11px; border-radius: 999px; background: rgba(88, 101, 242, .14); color: var(--fg); font-size: 13px; font-weight: 600; }
.dc-roles span.off { background: var(--surface-2); color: var(--muted); font-weight: 500; }
.dc-steps { margin: 12px 0 6px; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; }
.dc-steps li > span:first-child { margin-right: 10px; } .dc-steps li { line-height: 2; }
.dc-steps code { padding: 1px 6px; border-radius: 6px; background: var(--surface-2); font-size: 13px; }
.dc-code { display: inline-flex; align-items: center; gap: 8px; } .dc-code b { font: 700 20px/1 ui-monospace, Consolas, monospace; letter-spacing: .18em; padding: 6px 10px; border-radius: 10px; background: rgba(88, 101, 242, .14); }
.dc-more { margin-top: 10px; font-size: 13px; } .dc-more summary { cursor: pointer; color: var(--muted); }
.dc-legend { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 5px; } .dc-legend b { margin-right: 8px; } .dc-legend span { color: var(--muted); }

/* Mon offre : les cartes du site (offer-ui.css), une offre composée au-dessus, le configurateur dessous */
.plans.ob .pr-cards { margin-top: 4px; }
.plans.ob .pr-build { margin-top: 18px; }
.pr-own { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; padding: 14px 18px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--fg) 40%, var(--line)); background: var(--surface); }
.pr-own > div { flex: 1; display: flex; flex-direction: column; gap: 2px; } .pr-own > div span { color: var(--muted); font-size: 13px; }
.pr-own-p { font-size: 20px; } .pr-own-p small { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.pr-spot-a { display: flex; flex-direction: column; align-items: center; gap: 6px; }

/* avis : noter Velora en un clic depuis Mon offre, et la ligne de la fenêtre de félicitations */
.rv-ask { display: flex; align-items: center; gap: 16px; margin: 12px 0 4px; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); }
.rv-ask-t { flex: 1; display: flex; flex-direction: column; gap: 2px; } .rv-ask-t b { font-size: 14.5px; } .rv-ask-t span { color: var(--muted); font-size: 13px; }
.rv-ask-s { display: flex; gap: 2px; }
.rv-ask-s button { width: 34px; height: 34px; border: 0; background: none; color: color-mix(in srgb, var(--muted) 55%, transparent); font-size: 26px; line-height: 1; cursor: pointer; transition: color .12s, transform .12s; }
.rv-ask-s button.on { color: #f5b301; transform: scale(1.08); }
.cel-rv { margin: 10px 0 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
@media (max-width: 640px) { .rv-ask { flex-direction: column; align-items: flex-start; } }

/* avis : étoiles qui sautent, et le « Merci » animé */
.rv-ask-s button { animation: rvAskIn .45s cubic-bezier(.3, 1.6, .5, 1) both; }
.rv-ask-s button:nth-child(2) { animation-delay: .06s; } .rv-ask-s button:nth-child(3) { animation-delay: .12s; } .rv-ask-s button:nth-child(4) { animation-delay: .18s; } .rv-ask-s button:nth-child(5) { animation-delay: .24s; }
@keyframes rvAskIn { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
.rv-thanks { position: fixed; inset: 0; z-index: 9000; display: grid; place-items: center; background: rgba(0, 0, 0, .35); opacity: 0; transition: opacity .3s; }
.rv-thanks.in { opacity: 1; }
.rv-thanks canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.rv-thanks-c { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 34px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transform: scale(.85); transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.rv-thanks.in .rv-thanks-c { transform: none; }
.rv-thanks-c b { font-size: 18px; } .rv-thanks-c span { color: var(--muted); font-size: 13.5px; }
.rv-thanks-s { display: flex; gap: 4px; margin-bottom: 4px; font-size: 34px; line-height: 1; }
.rv-thanks-s i { font-style: normal; color: var(--line); }
.rv-thanks.in .rv-thanks-s i.on { color: #f5b301; animation: rvAskIn .5s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: calc(var(--k) * 110ms + .1s); }
@media (prefers-reduced-motion: reduce) { .rv-ask-s button, .rv-thanks-s i { animation: none !important; } }

.rv-ask[hidden] { display: none !important; }


/* boîte de réception : étiquettes du fan dans la liste (VIP en avant) */
.ib-tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 10.5px; font-weight: 700; font-style: normal; vertical-align: 1px; }
.ib-tag.vip { background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold); }
.ib-tags { margin: 0 0 8px; } .ib-tags .ib-tag { margin: 0 6px 4px 0; }
.ct-row.an-tf { grid-template-columns: minmax(0, 1.6fr) 1fr .7fr 1fr; } .an-mini { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 10px; }

/* Chatter IA : résumé d'un coup d'œil par créatrice, créneaux par jour */
.ai-sum { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 10px; }
.ai-sum span { display: inline-flex; flex-direction: column; gap: 1px; padding: 6px 10px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); min-width: 96px; }
.ai-sum span small { font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.ai-sum span b { font-size: 12.5px; font-weight: 600; color: var(--muted); } .ai-sum span.on b { color: var(--fg); }
.ai-days { flex-direction: column; gap: 4px; } .ai-day { display: flex; align-items: center; gap: 8px; } .ai-day label.check { min-width: 64px; }
.ai-day input[type=time] { padding: 4px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font: inherit; font-size: 12.5px; } .ai-day span { color: var(--muted); }

/* double authentification */
.dev-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.dev-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.dev-ic { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--surface); color: var(--muted); } .dev-ic .i { width: 15px; height: 15px; }
.dev-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; } .dev-txt b { font-size: 13.5px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .dev-txt small { font-size: 12px; color: var(--muted); }
.totp-setup { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.totp-qr { flex: none; padding: 8px; border-radius: 12px; background: #fff; line-height: 0; } .totp-qr svg { width: 180px; height: 180px; }
.totp-manual { flex: 1 1 260px; display: flex; flex-direction: column; gap: 8px; } .totp-manual code, .totp-codes code { display: inline-block; padding: 6px 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; letter-spacing: .06em; user-select: all; }
.totp-codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; margin: 10px 0; }
.lock-card[data-mode="totp"] #a-forgot { display: none; }

/* admin : accès d'un compte (autorisation par code, sessions) */
.adm-gate { margin: 4px 0 10px; padding: 9px 12px; border-radius: 10px; background: var(--surface-2); font-size: 13px; } .adm-gate.open { color: var(--ok); } .adm-gate.closed { color: var(--gold); }
.adm-code code { font-size: 20px; letter-spacing: .18em; font-weight: 800; padding: 2px 10px; border-radius: 8px; background: var(--surface); margin: 0 6px; }
.adm-gate-acts { align-items: center; gap: 8px; flex-wrap: wrap; } .adm-hours { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; } .adm-hours input { width: 64px; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); }
.adm-sess { display: flex; flex-direction: column; gap: 4px; max-height: 260px; overflow: auto; }
.adm-sess-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 9px; background: var(--surface-2); font-size: 12.5px; } .adm-sess-row small { display: block; color: var(--muted); font-size: 11px; } .adm-sess-row.off { opacity: .55; } .adm-sess-row em { color: var(--muted); font-style: normal; }
.urow .btn-ghost.on { border-color: var(--accent); color: var(--accent); }

/* tableau de bord : une carte par créatrice */
.db-cr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.db-cr { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); text-align: left; cursor: pointer; color: inherit; font: inherit; transition: border-color .15s, transform .15s; }
.db-cr:hover { border-color: var(--accent); transform: translateY(-1px); }
.db-cr-h { display: flex; align-items: center; gap: 10px; } .db-cr-n { min-width: 0; display: flex; flex-direction: column; } .db-cr-n b { font-size: 14px; } .db-cr-n small { color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-cr-main { display: flex; align-items: flex-end; gap: 8px; } .db-cr-main b { font-family: var(--font-display); font-size: 22px; letter-spacing: -.02em; } .db-cr-main small { color: var(--muted); font-size: 11.5px; padding-bottom: 3px; }
.db-cr-main em { font-style: normal; font-weight: 700; } .db-cr-main em.up { color: var(--ok); } .db-cr-main em.down { color: var(--danger, #ef4444); }
.db-spark { margin-left: auto; width: 110px; height: 30px; } .db-spark polyline { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.db-cr-bar { display: flex; height: 6px; border-radius: 999px; overflow: hidden; background: var(--surface-2); } .db-cr-bar i { display: block; width: var(--w); } .db-cr-bar i.ppv { background: var(--accent); } .db-cr-bar i.pourboires { background: var(--gold); } .db-cr-bar i.abonnements { background: var(--accent-2, #888887); }
.db-cr-foot { font-size: 11.5px; color: var(--muted); }
.db-cr-main b { white-space: nowrap; } .db-cr-main small { white-space: nowrap; } .db-spark { flex: 1 1 60px; min-width: 50px; width: auto; }

/* ---------- cohérence (28/10/2026) : onglets segmentés partout, titres de section, panneau Velora IA ---------- */
.ct-tabs { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.ct-tabs button { padding: 7px 13px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 600; transition: background .12s, color .12s; }
.ct-tabs button:hover { color: var(--fg); }
.ct-tabs button[aria-selected="true"] { background: var(--surface); color: var(--fg); border-color: transparent; box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.ct-h { font-family: var(--font-display); letter-spacing: -.01em; }
.ai-ptabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--line); align-self: flex-start; }
.ai-ptabs button { padding: 6px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.ai-ptabs button.on { background: var(--surface); color: var(--fg); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.ai-pane { padding: 4px 0 2px; } .ai-pane[hidden] { display: none; }
details.ai-warn { display: block; } details.ai-warn summary { cursor: pointer; font-weight: 650; list-style: none; display: flex; align-items: center; gap: 8px; } details.ai-warn summary::-webkit-details-marker { display: none; }
details.ai-warn summary::before { content: "?"; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid currentColor; font-size: 11px; font-weight: 800; }
details.ai-warn p { margin: 8px 0 0; }

/* ---------- bibliothèque : rubriques à gauche, outils, cartes ---------- */
.lb-layout { display: flex; flex-direction: column; gap: 12px; }
.lb-nav { position: sticky; top: 0; z-index: 4; display: flex; gap: 4px; padding: 6px; border-radius: 14px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(12px); border: 1px solid var(--line); box-shadow: var(--shadow); overflow-x: auto; scrollbar-width: none; }
.lb-nav::-webkit-scrollbar { display: none; }
.lb-nav button { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.lb-nav button em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--muted); padding: 0 7px; border-radius: 999px; background: var(--surface-2); }
.lb-nav button:hover { background: var(--surface-2); color: var(--fg); }
.lb-nav button[aria-selected="true"] { background: var(--accent-soft); color: var(--fg); } .lb-nav button[aria-selected="true"] em { background: var(--surface); color: var(--accent); }
.lb-cats button { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 8px 10px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: 600 13px var(--font-body); text-align: left; cursor: pointer; }
.lb-cats button em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--muted); padding: 0 7px; border-radius: 999px; background: var(--surface-2); }
.lb-cats button:hover { background: var(--surface-2); color: var(--fg); }
.lb-cats button[aria-selected="true"] { background: var(--accent-soft); color: var(--fg); } .lb-cats button[aria-selected="true"] em { background: var(--surface); color: var(--accent); }
.lb-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; } .lb-tools select { padding: 8px 11px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); font: inherit; font-size: 13px; } .lb-tools #lb-n { margin-left: auto; }
.lb-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.lb-card { padding: 16px 18px; transition: border-color .15s, transform .15s; } .lb-card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.lb-card h3 { font-family: var(--font-display); letter-spacing: -.01em; }
.lb-top .pill { font-size: 11px; }
@media (max-width: 1000px) { .lb-nav { border-radius: 10px; } }

/* scripts PPV : outils de la bibliothèque et résumé par script */
.lib-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; } .lib-tools .lib-search { flex: 1 1 220px; } .lib-tools input[type=search] { width: 100%; padding: 8px 11px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font: inherit; }
.lib-tools select { padding: 8px 11px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); font: inherit; font-size: 13px; }
.lib-sum { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 6px; } .lib-sum span { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--surface-2); color: var(--muted); }
.lib-sum .gold { color: var(--gold); background: color-mix(in srgb, var(--gold) 14%, transparent); } .lib-sum .ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); } .lib-sum .warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, transparent); } .lib-sum .i { width: 12px; height: 12px; }
.lib-item { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); } .lib-item + .lib-item { margin-top: 10px; }

/* analytics : équipe détaillée, fraîcheur des données par créatrice */
.an-best { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-bottom: 12px; }
.an-best > div { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.an-best small { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); } .an-best b { font-size: 15px; } .an-best span { color: var(--accent); font-weight: 700; }
.ct-row.an-tm2 { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.4fr) .8fr .8fr .8fr .9fr 1fr .8fr; }
.an-share { display: block; height: 5px; margin: 4px 0 2px; border-radius: 999px; background: linear-gradient(90deg, var(--accent) var(--w), var(--surface-2) var(--w)); }
.ct-row.an-cr { grid-template-columns: minmax(0, 1.5fr) 1fr .9fr .9fr .9fr .7fr .8fr 1fr; }
.an-fresh { display: flex; flex-direction: column; font-size: 12px; } .an-fresh small { color: var(--muted); } .an-fresh.ok { color: var(--ok); } .an-fresh.late { color: var(--warn); } .an-fresh.ko { color: var(--danger, #ef4444); }
@media (max-width: 1000px) { .ct-row.an-tm2 { grid-template-columns: minmax(0, 1.4fr) 1fr 1fr; } }

/* bibliothèque : liste compacte + zone de lecture qui défile toute seule (un long script ne fait plus descendre la page) */
.lb-grid { display: block; }
.lb-split { display: grid; grid-template-columns: minmax(260px, 360px) minmax(0, 1fr); gap: 14px; align-items: start; }
.lb-list { display: flex; flex-direction: column; gap: 4px; max-height: calc(100vh - 230px); overflow-y: auto; padding: 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.lb-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.lb-row:hover { background: var(--surface-2); } .lb-row.on { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.lb-ri { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--surface-2); color: var(--muted); } .lb-ri .i { width: 15px; height: 15px; } .lb-row.on .lb-ri { color: var(--accent); background: var(--surface); }
.lb-rm { flex: 1; min-width: 0; display: flex; flex-direction: column; } .lb-rm b { font-size: 13.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .lb-rm small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-rf { font-style: normal; color: #f59e0b; margin-right: 4px; }
.lb-rp { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; color: var(--gold); } .lb-rp .i { width: 12px; height: 12px; }
.lb-detail { position: sticky; top: 0; display: flex; flex-direction: column; gap: 0; padding: 0; max-height: calc(100vh - 230px); overflow: hidden; }
.lb-dh { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 18px 12px; border-bottom: 1px solid var(--line); }
.lb-dt { min-width: 0; display: flex; flex-direction: column; gap: 4px; } .lb-dt h3 { margin: 0; font-family: var(--font-display); font-size: 18px; letter-spacing: -.01em; } .lb-dt .pill { align-self: flex-start; font-size: 11px; }
.lb-da { flex: none; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.lb-db { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 10px; }
.lb-steps details.lb-sb > summary { list-style: none; cursor: pointer; } .lb-steps details.lb-sb > summary::-webkit-details-marker { display: none; }
.lb-steps details.lb-sb:not([open]) { padding-bottom: 10px; }
.lb-big-card { width: min(100%, 760px); max-height: calc(100vh - 40px); display: flex; flex-direction: column; padding: 0; overflow: hidden; } .lb-big-card .lb-db { max-height: none; }
@media (max-width: 1100px) { .lb-split { grid-template-columns: 1fr; } .lb-list { max-height: 320px; } .lb-detail { position: static; max-height: none; } }
.lb-dh { flex-direction: column; align-items: stretch; gap: 10px; } .lb-dt { flex: 1 1 auto; } .lb-da { justify-content: flex-start; }
.lb-dt small { white-space: normal; }
@media (min-width: 1101px) and (max-width: 1500px) { .lb-split { grid-template-columns: minmax(230px, 300px) minmax(0, 1fr); } }
.lb-row { padding: 7px 9px; } .lb-ri { width: 26px; height: 26px; border-radius: 8px; } .lb-list { gap: 2px; }

/* Bibliothèque : zone de lecture (28/10/2026) — barre d'outils à icônes, actions séparées, suppression en deux clics */
.lb-dh { flex-direction: column; align-items: stretch; gap: 12px; padding: 18px 20px 14px; }
.lb-dt h3 { font-size: 19px; line-height: 1.25; }
.lb-da { justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.lb-tb { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.lb-act { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 11px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface-2); color: var(--fg); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.lb-act svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.lb-act:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: color-mix(in srgb, var(--accent) 8%, var(--surface-2)); }
.lb-act.ico { width: 32px; padding: 0; justify-content: center; }
.lb-act.fav.on { color: #f59e0b; border-color: rgba(245, 158, 11, .45); background: rgba(245, 158, 11, .1); } .lb-act.fav.on svg { fill: currentColor; }
.lb-act.edit { background: var(--accent); border-color: transparent; color: var(--on-accent, #fff); } .lb-act.edit:hover { filter: brightness(1.08); background: var(--accent); }
.lb-act.del { color: var(--danger, #ef4444); background: transparent; border-color: color-mix(in srgb, var(--danger, #ef4444) 35%, var(--line)); }
.lb-act.del:hover, .lb-act.del.armed { background: color-mix(in srgb, var(--danger, #ef4444) 14%, transparent); border-color: var(--danger, #ef4444); }
.lb-act.del.armed { color: #fff; background: var(--danger, #ef4444); }
.lb-detail .lb-db { padding: 16px 20px 20px; }
.lb-big-card .lb-dh { padding-right: 56px; }
/* les deux zones de la Bibliothèque tiennent dans l'écran ; barre fine, sans flèches, visible au survol */
.lb-split .lb-list, .lb-split .lb-detail { max-height: calc(100vh - 300px); }
.lb-list::-webkit-scrollbar, .lb-db::-webkit-scrollbar { width: 8px; }
.lb-list::-webkit-scrollbar-button, .lb-db::-webkit-scrollbar-button { display: none; height: 0; }
.lb-list::-webkit-scrollbar-track, .lb-db::-webkit-scrollbar-track { background: transparent; margin: 6px 0; }
.lb-list::-webkit-scrollbar-thumb, .lb-db::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--fg) 14%, transparent); border-radius: 99px; border: 2px solid transparent; background-clip: padding-box; }
.lb-list:hover::-webkit-scrollbar-thumb, .lb-db:hover::-webkit-scrollbar-thumb { background-color: color-mix(in srgb, var(--fg) 28%, transparent); }
.lb-db::-webkit-scrollbar-thumb:active { background-color: var(--accent); }

/* Paramètres par catégories (02/11/2026) */
.set-tabs-sep { margin: 10px 11px 4px; font: 700 10.5px var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.set-head { padding: 2px 2px 0; } .set-head h2 { margin: 0; font-size: 20px; } .set-head p { margin: 2px 0 0; }
.set-solo { display: flex; flex-direction: column; gap: 18px; }
.set-hub { display: flex; flex-direction: column; gap: 18px; }
.set-rows { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.set-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.set-row + .set-row { border-top: 1px solid var(--line); }
.set-row:hover { background: var(--surface-2); }
.set-ic { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; background: var(--accent-soft); }
.set-ic .i { width: 17px; height: 17px; stroke: var(--accent); color: var(--accent); }
.set-txt { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.3; }
.set-txt small { color: var(--muted); font-size: 12.5px; }
.set-inline { display: inline-flex; flex: none; gap: 8px; align-items: center; } .set-inline input { width: 120px; }
.set-radios { display: flex; flex-direction: column; gap: 8px; }
.set-radio { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.set-radio:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.set-radio span { display: flex; flex-direction: column; } .set-radio small { color: var(--muted); font-size: 12.5px; }
@media (max-width: 760px) { .set-tabs-sep { display: none; } .set-row { flex-wrap: wrap; } }

.set-sub2 { display: flex; flex-direction: column; gap: 2px; padding-top: 6px; border-top: 1px solid var(--line); } .set-sub2 small { color: var(--muted); }
.set-adv summary { cursor: pointer; font-size: 13px; color: var(--fg-2); } .set-adv[open] summary { margin-bottom: 8px; }

/* (05/11/2026) Équipe sur téléphone : le classement, la paie, les scripts et les shifts gardent toutes leurs colonnes
   (avant : 7 colonnes tassées dans l'écran, 4 masquées et le texte qui se chevauchait) ; le tableau défile dans sa carte */
@media (max-width: 760px) {
  .ct-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .ct-row > span:nth-child(n+4) { display: block; }
  .ct-row { min-width: 620px; } .ct-row.py { min-width: 760px; } .ct-row.sc, .ct-row.st { min-width: 600px; }
}

/* (10/11/2026) Aide en direct : « display: flex » de .hp-new / .hp-chat passait devant l'attribut hidden, donc le formulaire
   « nouvelle demande » restait affiché par-dessus la conversation (on ne voyait pas la discussion) */
.hp [hidden] { display: none !important; }

/* (13/11/2026) Page « Ouvre Velora » (#web-gate) : le même thème que le site public (web.css v10) : noir #08080a et lueur
   violette en haut, titres Geist en blanc dégradé, pastilles et cartes du site, boutons violets pleins SANS halo. Toujours
   sombre, même si l'appli est réglée en clair. */
html body #web-gate.wg2, :root[data-theme="light"] body #web-gate.wg2 {
  --bg: #08080a; --surface: #111114; --surface-2: #17171b; --line: #27272e; --fg: #ecebf2; --fg-2: #a9a9b2; --muted: #7d7d86;
  --accent: #787877; --accent-btn: #787877; --accent-soft: rgba(120, 120, 119, .1); --lilac: #bfbfbe;
  color-scheme: dark; color: var(--fg-2); font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: radial-gradient(1400px 700px at 50% -260px, rgba(120, 120, 119, .11), rgba(120, 120, 119, 0) 70%) no-repeat, #08080a;
}
html body #web-gate.wg2 .wg2-glow { display: none; }
html body #web-gate.wg2 .wg2-hd { height: 76px; width: min(1200px, 100% - 48px); }
html body #web-gate.wg2 .brand.lg { gap: 10px; font: 600 20px/1 "Geist", "Inter", system-ui, sans-serif; letter-spacing: -.02em; color: #ecebf2; }
html body #web-gate.wg2 .brand.lg .logo { width: 30px; height: 30px; }
html body #web-gate.wg2 .wg-acc { background: rgba(255, 255, 255, .03); border: 1px solid var(--line); border-radius: 999px; box-shadow: none; }
html body #web-gate.wg2 .wg-av { background: #1d1d1c; color: var(--lilac); border: 1px solid #474746; }
html body #web-gate.wg2 .wg-acc b { color: var(--fg); } html body #web-gate.wg2 .wg-acc small { color: var(--muted); }
html body #web-gate.wg2 .wg-plan { color: var(--lilac); background: rgba(120, 120, 119, .08); border: 1px solid rgba(191, 191, 190, .18); }
/* étapes : les pastilles du site (.eb) */
html body #web-gate.wg2 .wg-steps li { background: rgba(255, 255, 255, .02); border: 1px solid var(--line); box-shadow: none; }
html body #web-gate.wg2 .wg-steps li.on { background: rgba(120, 120, 119, .08); border-color: rgba(191, 191, 190, .28); }
html body #web-gate.wg2 .wg-steps li > span { background: transparent; border: 1px solid var(--line); color: var(--muted); box-shadow: none; }
html body #web-gate.wg2 .wg-steps li.done > span { background: var(--accent); border-color: #787877; color: var(--on-accent, #fff); }
html body #web-gate.wg2 .wg-steps li.on > span { border-color: var(--lilac); color: var(--lilac); box-shadow: none; }
html body #web-gate.wg2 .wg-steps b { color: var(--fg); font-weight: 600; } html body #web-gate.wg2 .wg-steps small { color: var(--muted); }
html body #web-gate.wg2 .wg-msg { border: 1px solid rgba(74, 222, 128, .2); background: rgba(74, 222, 128, .06); color: #4ade80; }
html body #web-gate.wg2 .wg-msg:not(.ok) { border-color: rgba(248, 113, 113, .22); background: rgba(248, 113, 113, .07); color: #f87171; }
/* titre : Geist, blanc légèrement dégradé, le mot en lilas (comme les titres du site) */
html body #web-gate.wg2 h1 { font-family: "Geist", "Inter", system-ui, sans-serif; font-weight: 600; letter-spacing: -.035em; line-height: 1.04; font-size: clamp(40px, 6vw, 68px);
  background: linear-gradient(180deg, #ffffff 25%, #c9c4d9 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
html body #web-gate.wg2 h1 em { font-style: normal; background: linear-gradient(90deg, #c6c6c5, #969695); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
html body #web-gate.wg2 .wg-lead { color: var(--fg-2); }
/* boutons : violet plein, net, sans lueur ; le second en contour discret */
html body #web-gate.wg2 .wg2-btn { height: 50px; padding: 0 24px; border-radius: 10px; font: 600 15px/1 "Inter", system-ui, sans-serif; box-shadow: none; transition: background-color .2s, border-color .2s; }
html body #web-gate.wg2 .wg2-btn.primary { background: var(--accent); color: var(--on-accent, #fff); border-color: transparent; box-shadow: none; filter: none; }
html body #web-gate.wg2 .wg2-btn.primary:hover { background: #858584; filter: none; }
html body #web-gate.wg2 .wg2-btn.ghost { background: rgba(255, 255, 255, .04); color: var(--fg); border-color: var(--line); }
html body #web-gate.wg2 .wg2-btn.ghost:hover { background: rgba(255, 255, 255, .07); border-color: #383842; }
html body #web-gate.wg2 .wg2-btn:focus-visible { outline: 2px solid var(--lilac); outline-offset: 3px; }
html body #web-gate.wg2 .wg2-btn[hidden] { display: none; }
html body #web-gate.wg2 .wg-os { color: var(--muted); }
html body #web-gate.wg2 .wg-os a, html body #web-gate.wg2 .wg-links a, html body #web-gate.wg2 .wg-links .linkish { color: var(--fg-2); }
/* carte d'aide : la carte du site */
html body #web-gate.wg2 .wg-help { background: #111114; border: 1px solid var(--line); border-radius: 12px; color: var(--fg-2); }
html body #web-gate.wg2 .wg-help b { color: var(--fg); } html body #web-gate.wg2 .wg-help > .i { color: var(--lilac); }
html body #web-gate.wg2 .wg2-safe { color: var(--muted); }

/* (14/11/2026) Écran de bienvenue (après la connexion) : le symbole Sillage se dessine — la branche pleine glisse en place,
   les trois flux arrivent l'un après l'autre et s'y fondent, puis le nom apparaît (≈ 1,2 s, sans halo). Un clic passe ;
   « réduire les animations » : tout est affiché d'emblée (règle .welcome * plus haut). */
.welcome-mark { view-transition-name: none; }
.welcome-mark .wm { display: inline-flex; align-items: center; gap: 12px; }
.welcome-mark .wm svg { width: 60px; height: 60px; overflow: visible; display: block; }
.welcome-mark .wm-s { fill: #787877; animation: wmStream .5s cubic-bezier(.2, .9, .25, 1) both; }
.welcome-mark .wm-s1 { animation-delay: .32s; } .welcome-mark .wm-s2 { animation-delay: .42s; } .welcome-mark .wm-s3 { animation-delay: .52s; }
.welcome-mark .wm-arm { animation: wmArm .55s cubic-bezier(.2, .9, .25, 1) .05s both; }
.welcome-mark .wm-word { font-family: var(--font-display, inherit); font-size: 34px; font-weight: 700; letter-spacing: -0.03em; color: var(--fg); animation: wmWord .55s cubic-bezier(.2, .8, .2, 1) .78s both; }
@keyframes wmArm { from { opacity: 0; transform: translate(9px, -12px); } }
@keyframes wmStream { from { opacity: 0; transform: translate(-10px, -14px); } 70% { opacity: 1; } }
@keyframes wmWord { from { opacity: 0; transform: translateX(-8px); clip-path: inset(0 100% 0 0); } to { opacity: 1; transform: none; clip-path: inset(0 0 0 0); } }
/* le reste de l'écran (photo, titre, phrase, barre) vient juste après le logo */
.welcome-avatar { animation-delay: .95s; }
.welcome-title { animation-delay: 1.05s; }
.welcome-sub { animation-delay: 1.15s; }
.welcome-bar { animation-delay: 1.22s; }

/* (14/11/2026) Bulle d'aide en bas à droite : le logo Sillage (appli) */
.hp-fab .hp-logo { width: 22px; height: 22px; display: block; border-radius: 6px; }
.hp-av .hp-logo { width: 32px; height: 32px; display: block; border-radius: 9px; }
.hp-av:has(.hp-logo) { background: none; }

/* (27/11/2026) Bienvenue SubScale (« refais cette anim de chargement ») : le symbole « La marche » s'assemble — les deux
   carrés arrivent des coins opposés et s'emboîtent avec un petit ressort, comme le logo du menu (public/motion.js) —, le mot
   « subscale » (Plus Jakarta Sans, comme le logo), un trait fin à la couleur d'accent (--acc, public/motion.css) se dessine
   comme un chargement qui s'achève, puis la photo s'il y en a une, la salutation (Hanken) et la date. Fond et couleurs du
   thème (sombre chaud / papier), aucun halo. Le mouvement ne joue qu'en Animations Normales (data-motion="full") ; sinon
   (Réduites, « réduire les animations » de l'ordinateur, navigateur piloté) tout est posé, simple fondu.
   Sortie : le symbole file vers le logo du menu (welcomeFly, public/app.js) pendant que la scène s'efface. ≈ 1,35 s. */
html body .welcome.wl3 { background: var(--bg); color: var(--fg); } /* sans !important : la sortie fait passer le fond au transparent */
html body .welcome.wl3 .welcome-glow, html body .welcome.wl3 .welcome-bar { display: none !important; }
.wl3::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(52% 40% at 50% 45%, color-mix(in srgb, var(--fg) 3.5%, transparent), transparent 72%); }
:root[data-theme="light"] .wl3::before { background: radial-gradient(52% 40% at 50% 45%, color-mix(in srgb, var(--fg) 2%, transparent), transparent 72%); }
.wl3-in { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 24px; animation: wl4Fade .28s ease both; }
.wl3-brand { display: flex; align-items: center; gap: 16px; }
.wl3-mark { width: 54px; height: 54px; flex: none; view-transition-name: none; }
.wl3-mark svg { width: 100%; height: 100%; display: block; overflow: visible; }
.wl3-mark rect { fill: var(--fg); transform-box: fill-box; transform-origin: center; }
html body .welcome.wl3 .wl3-word { margin: 0; font: 700 40px/1 "Plus Jakarta Sans", "Inter", sans-serif; letter-spacing: -.045em; text-transform: lowercase; color: var(--fg); }
.wl3-line { position: relative; width: min(220px, 56vw); height: 2px; margin: 32px 0 28px; border-radius: 2px; overflow: hidden; background: color-mix(in srgb, var(--fg) 10%, transparent); }
.wl3-line::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, var(--acc-2, var(--acc, #6FCB98)), var(--acc, #6FCB98)); transform-origin: 0 50%; }
html body .welcome.wl3 .welcome-avatar { display: block; width: 44px; height: 44px; margin: 0 0 14px; border-radius: 50%; overflow: hidden; font-size: 0; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--acc, #6FCB98); animation: none; }
html body .welcome.wl3 .welcome-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
html body .welcome.wl3 .welcome-title { margin: 0; font: 600 clamp(26px, 3.2vw, 34px)/1.15 var(--font-display, inherit); letter-spacing: -.02em; color: var(--fg); opacity: 1; animation: none; }
html body .welcome.wl3 .welcome-sub { margin: 8px 0 0; font-size: 14px; color: var(--muted); opacity: 1; animation: none; }
/* Animations Normales : les carrés, le mot, le trait qui se remplit, puis le texte */
html[data-motion="full"] body .welcome.wl3 .wl3-a { animation: wl4A .9s var(--mo-pop, cubic-bezier(.3, 1.7, .5, 1)) .05s backwards; }
html[data-motion="full"] body .welcome.wl3 .wl3-b { animation: wl4B .9s var(--mo-pop, cubic-bezier(.3, 1.7, .5, 1)) .17s backwards; }
html[data-motion="full"] body .welcome.wl3 .wl3-word { animation: wl4Word .55s var(--mo-out, cubic-bezier(.2, .8, .2, 1)) .4s backwards; }
html[data-motion="full"] body .welcome.wl3 .wl3-line { animation: wl4Fade .3s ease .46s backwards; }
html[data-motion="full"] body .welcome.wl3 .wl3-line::after { animation: wl4Load .62s cubic-bezier(.65, 0, .25, 1) .5s backwards; }
html[data-motion="full"] body .welcome.wl3 :is(.welcome-avatar, .welcome-title) { animation: wl4Up .55s var(--mo-out, cubic-bezier(.2, .8, .2, 1)) .72s backwards; }
html[data-motion="full"] body .welcome.wl3 .welcome-sub { animation: wl4Up .55s var(--mo-out, cubic-bezier(.2, .8, .2, 1)) .8s backwards; }
@keyframes wl4A { from { opacity: 0; transform: translate(-34px, 34px) rotate(-90deg); } }
@keyframes wl4B { from { opacity: 0; transform: translate(34px, -34px) rotate(90deg); } }
@keyframes wl4Word { from { opacity: 0; transform: translateX(-8px); } }
@keyframes wl4Load { from { transform: scaleX(0); } }
@keyframes wl4Up { from { opacity: 0; transform: translateY(8px); } }
@keyframes wl4Fade { from { opacity: 0; } }
/* sortie : le texte s'efface vite, le fond se retire, l'appli entre (en Normales, le symbole file vers le menu : welcomeFly) */
html body .welcome.wl3.leave { animation: wl4Out .6s cubic-bezier(.4, 0, .2, 1) forwards !important; }
html body .welcome.wl3.leave :is(.wl3-word, .wl3-line, .welcome-avatar, .welcome-title, .welcome-sub) { animation: wl4TxtOut .25s ease forwards !important; }
html:not([data-motion="full"]) body .welcome.wl3.leave .wl3-mark { animation: wl4TxtOut .25s ease forwards !important; }
@keyframes wl4Out { from { background-color: var(--bg); } to { background-color: transparent; } }
@keyframes wl4TxtOut { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  html body .welcome.wl3 :is(.wl3-in, .wl3-a, .wl3-b, .wl3-word, .wl3-line, .welcome-avatar, .welcome-title, .welcome-sub), html body .welcome.wl3 .wl3-line::after { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* (14/11/2026) bandeau « Nouvelle version de l'appli Velora » (appli d'ordinateur ancienne) */
.studio-upd { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 1500; display: flex; align-items: center; gap: 12px; max-width: min(760px, calc(100vw - 32px)); padding: 10px 10px 10px 16px; border-radius: 12px; background: var(--surface, #16151c); border: 1px solid var(--line, #2a2833); box-shadow: 0 12px 32px rgba(0, 0, 0, .35); font-size: 13px; }
.studio-upd b { white-space: nowrap; } .studio-upd span { color: var(--muted); flex: 1; min-width: 0; }
.studio-upd .btn-main { flex: none; text-decoration: none; }
.studio-upd-x { flex: none; width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 18px; cursor: pointer; }
.studio-upd-x:hover { background: var(--surface-2, rgba(255, 255, 255, .06)); color: var(--fg); }
@media (max-width: 760px) { .studio-upd { flex-wrap: wrap; } .studio-upd b { white-space: normal; } }

/* (19/11/2026) Mon compte sur la page web : panneau sous la pastille (feuille du bas sur petit écran), ouverture animée */
#web-gate .wg2-hd-r { position: relative; }
#web-gate .wg-acc { cursor: pointer; transition: border-color .15s ease, background .15s ease; }
#web-gate .wg-acc:hover, #web-gate .wg-acc[aria-expanded="true"] { border-color: rgba(191, 191, 190, .32); background: rgba(255, 255, 255, .05); }
#web-gate .wg-acc:focus-visible { outline: 2px solid var(--lilac, var(--accent)); outline-offset: 2px; }
#web-gate .wg-acc-chev { width: 15px; height: 15px; flex: none; color: var(--muted); transform: rotate(90deg); transition: transform .2s cubic-bezier(.2, .8, .2, 1); }
#web-gate .wg-acc[aria-expanded="true"] .wg-acc-chev { transform: rotate(-90deg); }
.wg-menu { position: absolute; z-index: 40; top: calc(100% + 10px); right: 0; width: 340px; max-width: calc(100vw - 32px); padding: 14px; border-radius: 16px;
  background: #111114; border: 1px solid var(--line); box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .02) inset;
  text-align: left; color: var(--fg-2, var(--muted)); transform-origin: top right;
  opacity: 0; transform: translateY(-6px) scale(.97); transition: opacity .2s cubic-bezier(.2, .8, .2, 1), transform .2s cubic-bezier(.2, .8, .2, 1); }
.wg-menu.in { opacity: 1; transform: none; }
.wg-menu.out { opacity: 0; transform: translateY(-4px) scale(.98); transition-duration: .16s; }
.wg-menu[hidden], .wg-menu-veil[hidden] { display: none; }
.wg-menu:focus { outline: none; }
.wg-menu-veil { position: fixed; inset: 0; z-index: 39; background: transparent; }
.wg-menu-grab { display: none; }
.wg-menu-ttl { margin: 0 2px 10px; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.wg-menu-hd { display: flex; align-items: center; gap: 11px; padding: 0 2px 12px; }
.wg-menu-hd .wg-av { width: 38px; height: 38px; font-size: 15px; }
.wg-menu-hd div { min-width: 0; display: flex; flex-direction: column; }
.wg-menu-hd b { color: var(--fg); font-size: 14.5px; } .wg-menu-hd small { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wg-menu-plan { display: flex; flex-direction: column; gap: 3px; padding: 12px 13px; border-radius: 12px; border: 1px solid rgba(191, 191, 190, .16); background: rgba(120, 120, 119, .06); }
.wg-mp-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.wg-mp-k { font-size: 12px; color: var(--muted); }
.wg-mp-price { font-size: 12.5px; font-weight: 600; color: var(--fg); }
.wg-mp-name { font-size: 17px; font-weight: 600; color: var(--fg); letter-spacing: -.01em; }
.wg-mp-st { font-size: 12.5px; color: #4ade80; }
.wg-mp-st.warn { color: #fbbf24; } .wg-mp-st.bad { color: #f87171; }
.wg-menu-acts { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; }
.wg-menu-it { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 10px; border: 0; border-radius: 10px; background: transparent; color: var(--fg); font: 500 14px/1.2 inherit; font-family: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.wg-menu-it .i { width: 17px; height: 17px; flex: none; color: var(--muted); }
.wg-menu-it:hover, .wg-menu-it:focus-visible { background: rgba(255, 255, 255, .05); outline: none; }
.wg-menu-it:hover .i { color: var(--lilac, var(--accent)); }
.wg-menu-it[hidden] { display: none; }
.wg-menu-it:disabled { opacity: .6; cursor: progress; }
.wg-menu-it.out { margin-top: 4px; color: var(--fg-2, var(--muted)); border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; padding-top: 12px; }
.wg-menu-note { margin: 8px 10px 6px; font-size: 12px; line-height: 1.45; color: var(--muted); }
@media (max-width: 640px) {
  .wg-menu { position: fixed; top: auto; left: 0; right: 0; bottom: 0; width: auto; max-width: none; border-radius: 18px 18px 0 0; padding: 10px 16px calc(16px + env(safe-area-inset-bottom));
    transform: translateY(100%); transform-origin: bottom center; transition-duration: .22s; }
  .wg-menu.in { transform: none; }
  .wg-menu.out { transform: translateY(100%); opacity: 1; }
  .wg-menu-grab { display: block; width: 38px; height: 4px; margin: 0 auto 12px; border-radius: 4px; background: #3a3a42; }
  .wg-menu-veil { background: rgba(0, 0, 0, .5); opacity: 0; transition: opacity .2s ease; }
  .wg-menu-veil.in { opacity: 1; }
}
/* bandeau « Paiement validé » : la coche se dessine, le bandeau arrive en douceur (une fois) */
#web-gate .wg-msg.wg-win { display: inline-flex; align-items: center; gap: 10px; animation: wg-win-in .42s cubic-bezier(.2, .8, .2, 1) both; }
.wg-tick { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wg-tick circle { stroke-dasharray: 63; stroke-dashoffset: 63; animation: wg-draw .5s cubic-bezier(.65, 0, .35, 1) .1s forwards; opacity: .55; }
.wg-tick path { stroke-dasharray: 16; stroke-dashoffset: 16; animation: wg-draw .32s cubic-bezier(.65, 0, .35, 1) .48s forwards; stroke-width: 2.4; }
@keyframes wg-win-in { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes wg-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .wg-menu, .wg-menu.in, .wg-menu.out, .wg-menu-veil, #web-gate .wg-acc-chev { transition: none !important; }
  #web-gate .wg-msg.wg-win { animation: none; }
  .wg-tick circle, .wg-tick path { animation: none; stroke-dashoffset: 0; }
}
#web-gate .wg2-hd { z-index: 5; } /* au-dessus du contenu : le panneau du compte passe devant */
#web-gate .wg2-hd:has(.wg-menu:not([hidden])) { z-index: 950; } /* panneau ouvert : devant le bouton « Aide » (890) */

/* (21/11/2026) Téléphone : les fenêtres de l'offre (« Bienvenue dans l'offre », « Ton offre : comment ça marche ») dépassaient
   de l'écran (la liste « ce qui s'ajoute » est longue) et leurs boutons restaient hors d'atteinte. Hauteur limitée à la zone
   vraiment visible (dvh, encoches comprises), contenu qui défile, boutons collés en bas de la fenêtre, toujours visibles. */
.celebrate { padding: max(12px, env(safe-area-inset-top, 0px)) 12px max(12px, env(safe-area-inset-bottom, 0px)); z-index: 1300; }
.cel-card { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.cel-acts { position: sticky; bottom: -24px; z-index: 1; margin: 0 -28px -24px; padding: 12px 20px 18px; background: var(--surface);
  border-top: 1px solid var(--line); }
.cel-gold .cel-acts { background: #17130c; border-top-color: rgba(233, 207, 152, .2); }
.cel-acts button { min-height: 44px; }
.pg-modal { z-index: 1300; padding: max(12px, env(safe-area-inset-top, 0px)) 12px max(12px, env(safe-area-inset-bottom, 0px)); }
.pg-card { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-bottom: 0; }
.pg-foot { position: sticky; bottom: 0; z-index: 1; margin: 18px -28px 0; padding: 12px 28px 16px; background: var(--surface); border-top: 1px solid var(--line); }
.pg-foot .btn-main { min-height: 44px; }
.pg-x { position: sticky; float: right; top: 0; z-index: 2; width: 44px; height: 44px; margin: -12px -14px 0 0; display: grid; place-items: center; border-radius: 50%; }
@media (max-width: 640px) {
  .cel-card { padding: 22px 18px 24px; }
  .cel-acts { margin: 0 -18px -24px; padding: 12px 14px 16px; }
  .cel-acts button { flex: 1 1 100%; }
  .cel-badge { width: 54px; height: 54px; margin-bottom: 10px; }
  .cel-badge .i { width: 26px; height: 26px; }
  .cel-card h2 { font-size: 21px; }
  .cel-list li { padding: 8px 10px; font-size: 13px; }
  .pg-card { padding: 20px 18px 0; border-radius: 20px; }
  .pg-foot { margin: 16px -18px 0; padding: 12px 18px 14px; }
  .pg-foot .btn-main { flex: 1 1 auto; }
  .pg-list li { flex-wrap: wrap; }
}

/* (23/11/2026) Velora IA › Cerveau (public/cerveau.js) */
.cv-main { display: flex; flex-direction: column; gap: 12px; padding-bottom: 24px; }
.cv-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cv-head h3 { margin: 0; }
.cv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.cv-grid2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.cv-kpi { display: flex; flex-direction: column; gap: 4px; }
.cv-kpi b { font-size: 22px; }
.cv-main .up { color: var(--ok, #34d399); }
.cv-main .down { color: var(--bad, #f87171); }
.cv-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.cv-table th, .cv-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line, rgba(255,255,255,.08)); }
.cv-ul { margin: 6px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.cv-prio { padding: 10px 0; border-top: 1px solid var(--line, rgba(255,255,255,.08)); }
.cv-prio:first-of-type { border-top: 0; }
.cv-tag { font-size: 11px; padding: 2px 8px; border-radius: 999px; border: 1px solid currentColor; margin-left: 6px; vertical-align: middle; }
.cv-var { margin-top: 8px; padding: 10px; border-radius: 10px; background: var(--card2, rgba(255,255,255,.03)); }
.cv-weeks { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-top: 8px; }
.cv-week { padding: 10px; border-radius: 10px; background: var(--card2, rgba(255,255,255,.03)); }
.cv-week h4, .cv-fb h4 { margin: 8px 0 0; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted, #9ca3af); }
.cv-draft[data-st="ignored"] { opacity: .55; }
.cv-acts { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.cv-draftnote { cursor: pointer; border: 0; text-align: left; }
@media (max-width: 640px) { .cv-table { font-size: 12px; } .cv-table th:nth-child(5), .cv-table td:nth-child(5) { display: none; } }
