/* ============================================================================
   LE BACK-OFFICE COACH, AU STYLE DE L ESPACE MEMBRE (15/10)
   ============================================================================
   Page a part (back-office.html). Palette de assets/formation.css : noir a
   halo dore, or #e8b84b, surfaces #111318 / #161a20, bordure #1e2128.
   Les variables du journal (`--surface`, `--text`, `--border`...) sont posees
   ici aussi : assets/coach-membres.css les lit pour l ecran Membres.
   ========================================================================== */
:root, body.dark-mode {
  --bg: #0a0a0d; --surface: #111318; --surface-2: #161a20; --surface-3: #1b2028;
  --text: #f7f6f3; --text-strong: #ffffff; --text-muted: #bdbcb6; --text-soft: #9c9b94; --text-disabled: #6f6e68;
  --border: #1e2128; --border-strong: #2a2e37;
  --gold: #e8b84b; --gold-2: #f3d585; --gold-deep: #b98a2e;
  --gold-line: rgba(232, 184, 75, .35); --gold-glow: rgba(232, 184, 75, .5); --gold-wash: rgba(232, 184, 75, .10);
  --ok: #e8b84b; --non: #ef4444;
  --f-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, sans-serif;
  --f-mono: "JetBrains Mono", "SF Mono", ui-monospace, monospace;
  --r-card: 18px; --r-pill: 40px;
  --barre: 264px;
  --verre: rgba(10, 10, 13, .72); --carte: rgba(17, 19, 24, .88); --fond-sombre: #0a0a0d;
  --fond:
    radial-gradient(ellipse 80% 55% at 50% 0%, rgba(232, 184, 75, .14), transparent 62%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(232, 184, 75, .10), transparent 60%),
    radial-gradient(ellipse 120% 90% at 50% 50%, #101014, #0a0a0d 70%);
  color-scheme: dark;
}
/* ── Le theme clair : celui de l espace membre, « aube claire » (15/10) ────── */
body:not(.dark-mode) {
  --bg: #f6f2ea; --surface: #ffffff; --surface-2: #f1ece1; --surface-3: #e7e0d1;
  --text: #17140f; --text-strong: #0d0b07; --text-muted: #4e483d; --text-soft: #6e685b; --text-disabled: #a39d8f;
  --border: #e2dbcc; --border-strong: #d2c9b5;
  --gold: #b98a2e; --gold-2: #d3a73c; --gold-deep: #8f6a1f;
  --gold-line: rgba(185, 138, 46, .40); --gold-glow: rgba(185, 138, 46, .35); --gold-wash: rgba(185, 138, 46, .10);
  --verre: rgba(250, 247, 241, .78); --carte: rgba(255, 255, 255, .86); --fond-sombre: #f6f2ea;
  --fond:
    radial-gradient(ellipse 80% 55% at 50% 0%, rgba(232, 184, 75, .22), transparent 62%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(232, 184, 75, .14), transparent 60%),
    radial-gradient(ellipse 120% 90% at 50% 50%, #faf7f1, #f3eee4 70%);
  color-scheme: light;
}
html:has(body:not(.dark-mode)) { background: #f6f2ea; }
*, *::before, *::after { box-sizing: border-box; }
html { background: #0a0a0d; }
body {
  margin: 0; min-height: 100vh; color: var(--text); font-family: var(--f-ui); font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  background: var(--fond);
  background-attachment: fixed;
}
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.marque {
  display: block; width: 160px; aspect-ratio: 1211 / 224; background-color: var(--gold);
  -webkit-mask: url('/assets/marque/t360-logo.svg') no-repeat center / contain;
  mask: url('/assets/marque/t360-logo.svg') no-repeat center / contain;
}

/* ── Le voile de chargement ──────────────────────────────────────────────── */
.bo-voile { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; background: var(--fond-sombre); }
.bo-voile .marque { width: 180px; opacity: .9; }
.bo-voile[hidden] { display: none; }

/* ── La page ───────────────────────────────────────────────────────────────── */
.bo { display: flex; min-height: 100vh; }
.bo[hidden] { display: none; }
.bo-barre {
  width: var(--barre); flex-shrink: 0; position: sticky; top: 0; height: 100vh; overflow-y: auto;
  background: var(--verre); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-right: 1px solid var(--border); display: flex; flex-direction: column; scrollbar-width: none;
}
.bo-barre::-webkit-scrollbar { display: none; }
.bo-marque { display: grid; justify-items: center; gap: 6px; padding: 26px 20px 18px; text-decoration: none; border-bottom: 1px solid var(--border); }
.bo-marque small { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--text-soft); }
.bo-nav { display: flex; flex-direction: column; padding: 10px 0; }
.bo-groupe { font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); padding: 16px 22px 6px; opacity: .9; }
.bo-nav a {
  display: flex; align-items: center; gap: 12px; padding: 11px 22px; text-decoration: none;
  color: var(--text-muted); font-weight: 500; border-left: 2px solid transparent; transition: background .2s ease, color .2s ease;
}
.bo-nav a i { width: 18px; text-align: center; color: var(--gold); font-size: 13px; }
.bo-nav a:hover { background: rgba(232, 184, 75, .08); color: var(--text); }
.bo-nav a[aria-current="page"] { background: linear-gradient(90deg, rgba(232, 184, 75, .14), rgba(232, 184, 75, .02)); border-left-color: var(--gold); color: var(--text); }
.bo-barre__pied { margin-top: auto; padding: 16px 18px 22px; border-top: 1px solid var(--border); display: grid; gap: 8px; }
.bo-barre__pied small { font-size: 12px; color: var(--text-soft); text-align: center; word-break: break-all; }

.bo-contenu { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bo-haut { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 14px 28px; background: var(--verre); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.bo-fil { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-soft); font-weight: 600; }
.bo-recharger { margin-left: auto; }
.bo-burger { display: none; background: none; border: 1px solid var(--border); border-radius: 10px; width: 38px; height: 38px; }
.bo-ecran { padding: 26px 28px 40px; max-width: 1360px; width: 100%; }
.bo-ecran[hidden] { display: none; }
.bo-tete { margin-bottom: 22px; }
.bo-tete h1 { margin: 0 0 4px; font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -.02em; }
.bo-tete p { margin: 0; color: var(--text-muted); font-size: 15.5px; max-width: 70ch; }
.bo-pied { margin-top: auto; padding: 22px 28px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-soft); }

/* ── Les briques ───────────────────────────────────────────────────────────── */
.bo-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: var(--r-pill);
  font-size: 14px; font-weight: 600; border: 1px solid transparent; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, border-color .2s ease, box-shadow .2s ease;
}
.bo-btn:hover { transform: translateY(-1px); }
.bo-btn--or { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #120e07; box-shadow: 0 8px 30px -8px var(--gold-glow); }
.bo-btn--fantome { background: var(--surface-2); border-color: var(--border); color: var(--text); }
.bo-btn--fantome:hover { border-color: var(--gold-line); }
.bo-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.bo-carte { background: var(--carte); border: 1px solid var(--border); border-radius: var(--r-card); padding: 22px 24px; margin-bottom: 18px; box-shadow: 0 20px 60px -40px rgba(0, 0, 0, .7); }
.bo-carte h2 { margin: 0 0 14px; font-size: 19px; font-weight: 800; letter-spacing: -.02em; display: flex; align-items: baseline; gap: 10px; }
.bo-carte h2 b { color: var(--gold); }
.bo-carte h2 small { font-size: 13px; font-weight: 500; color: var(--text-soft); }
.bo-carte__tete { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.bo-carte__tete h2 { margin: 0; }
.bo-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.bo-vide { text-align: center; padding: 28px 0; color: var(--text-soft); }
.bo-erreur { color: var(--non); }
.bo-source { margin: 12px 0 0; font-size: 12.5px; color: var(--text-soft); }
.bo-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: 600; letter-spacing: .04em; border: 1px solid var(--border); color: var(--text-muted); }
.bo-pill--ok { color: var(--gold); border-color: var(--gold-line); background: var(--gold-wash); }
.bo-pill--non { color: var(--non); border-color: rgba(239, 68, 68, .4); }
.bo-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.bo-table th { text-align: left; font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); padding: 8px 10px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.bo-table td { padding: 11px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.bo-table tr:hover td { background: var(--gold-wash); }
.bo-table td.num, .bo-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.bo-enveloppe { overflow-x: auto; }
.bo-barre-prog { height: 6px; border-radius: 6px; background: var(--surface-3); overflow: hidden; min-width: 90px; }
.bo-barre-prog i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-2)); }
.bo-oeil { background: none; border: 0; font-size: 16px; color: var(--gold); cursor: pointer; }

/* ── Les indicateurs ───────────────────────────────────────────────────────── */
.bo-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-bottom: 18px; }
.bo-kpi { background: var(--carte); border: 1px solid var(--border); border-radius: var(--r-card); padding: 18px 20px; display: grid; gap: 6px; }
.bo-kpi__ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-wash); color: var(--gold); margin-bottom: 6px; }
.bo-kpi__k { font-size: 13px; color: var(--text-muted); }
.bo-kpi__k b { display: block; font-size: 12px; color: var(--text-soft); font-weight: 500; }
.bo-kpi__v { font-family: var(--f-mono); font-size: 26px; font-weight: 700; letter-spacing: -.02em; color: var(--text); }
.bo-kpi__s { font-size: 12.5px; color: var(--text-soft); }
.bo-grille-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.bo-grille-3 { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; }
@media (max-width: 1000px) { .bo-grille-2, .bo-grille-3 { grid-template-columns: 1fr; } }
.bo-graph { position: relative; height: 300px; }
.bo-graph--petit { height: 220px; }
.bo-legende { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; font-size: 12.5px; color: var(--text-muted); }
.bo-legende span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; background: var(--c, var(--gold)); vertical-align: middle; }

/* ── Les ecrans a venir : une carte qui dit ce qui vient ───────────────────── */
.bo-avenir { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.bo-avenir__carte { background: var(--carte); border: 1px dashed var(--gold-line); border-radius: var(--r-card); padding: 20px; }
.bo-avenir__carte h3 { margin: 0 0 8px; font-size: 16px; font-weight: 700; }
.bo-avenir__carte p { margin: 0; color: var(--text-muted); font-size: 14px; }

/* ── Les modeles d emails ──────────────────────────────────────────────────── */
.bo-modeles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.bo-modele { background: var(--carte); border: 1px solid var(--border); border-radius: var(--r-card); overflow: hidden; display: grid; grid-template-rows: 150px auto; transition: border-color .2s ease, transform .2s ease; }
.bo-modele:hover { border-color: var(--gold-line); transform: translateY(-2px); }
.bo-modele__apercu { background: var(--fond-sombre); padding: 16px; display: grid; gap: 6px; align-content: start; }
.bo-modele__apercu i { display: block; height: 8px; border-radius: 4px; background: var(--surface-3); }
.bo-modele__apercu i.or { background: var(--gold); width: 44%; }
.bo-modele__apercu i.titre { height: 14px; width: 70%; background: var(--text-muted); }
.bo-modele__apercu i.btn { width: 40%; height: 18px; border-radius: 18px; background: var(--gold); margin-top: 6px; }
.bo-modele__corps { padding: 14px 16px 16px; }
.bo-modele__corps h3 { margin: 0 0 4px; font-size: 15px; font-weight: 700; }
.bo-modele__corps p { margin: 0 0 10px; font-size: 13px; color: var(--text-muted); }
.bo-modele--libre .bo-modele__apercu { display: grid; place-items: center; font-size: 34px; color: var(--gold); }

/* ── Le toast ──────────────────────────────────────────────────────────────── */
.bo-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 9000; background: var(--surface); border: 1px solid var(--gold-line); color: var(--text); padding: 12px 18px; border-radius: 14px; font-size: 14px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); transition: transform .25s ease, opacity .25s ease; max-width: min(90vw, 520px); }
.bo-toast.on { transform: translate(-50%, 0); opacity: 1; }
.bo-toast.erreur { border-color: rgba(239, 68, 68, .5); }

/* ── Mobile ────────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .bo-barre { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .25s ease; z-index: 50; width: 280px; }
  .bo.barre-ouverte .bo-barre { transform: none; }
  .bo-burger { display: grid; place-items: center; }
  .bo-ecran { padding: 18px 14px 30px; }
  .bo-haut { padding: 12px 14px; }
  .bo-kpi__v { font-size: 22px; }
}

/* ── Le bouton de theme, dans le pied de la barre ──────────────────────────── */
.bo-theme { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.bo-theme i { color: var(--gold); }

/* ── Comptabilite : selecteurs et table compacte ───────────────────────────── */
.bo-select { padding: 9px 12px; border-radius: 40px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: inherit; font-size: 13.5px; }
.bo-table--compact td { padding: 8px 8px; font-size: 13px; }
.bo-table--compact th { padding: 6px 8px 8px; }
.bo-ligne--neutre td { opacity: .55; }
/* Les cartes qui menent quelque part (comptabilite) */
.bo-kpi--btn { position: relative; text-align: left; cursor: pointer; font: inherit; color: inherit; transition: border-color .2s ease, transform .2s ease; }
.bo-kpi--btn:hover { border-color: var(--gold-line); transform: translateY(-2px); }
.bo-kpi__fleche { position: absolute; right: 14px; top: 14px; color: var(--text-disabled); font-size: 12px; }
.bo-kpi--btn:hover .bo-kpi__fleche { color: var(--gold); }
.bo-ligne--total td { font-weight: 700; border-top: 1px solid var(--gold-line); }
.bo-grise { color: var(--text-disabled); font-style: italic; }

/* ── Marketing · tunnels de vente (20/10/2026) ──────────────────────────────── */
.bo-tun-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.bo-tun-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; margin-top: 18px; }
@media (max-width: 900px) { .bo-tun-grille { grid-template-columns: 1fr; } }
.bo-tun-champ { display: grid; gap: 6px; font-size: 13.5px; color: var(--text-soft); }
.bo-tun-champ > span { color: var(--text); font-weight: 600; }
.bo-tun-champ input, .bo-tun-champ textarea, .bo-tun-champ select { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: inherit; font-size: 14px; resize: vertical; transition: border-color .2s cubic-bezier(0.16, 1, 0.3, 1); }
.bo-tun-champ input:focus, .bo-tun-champ textarea:focus, .bo-tun-champ select:focus { outline: none; border-color: var(--gold-line); }
.bo-tun-champ small { color: var(--text-muted); font-size: 12px; }
/* La case à cocher d'un champ de tunnel (16/11/2026) : pas le rembourrage des champs texte. */
.bo-tun-case { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 500; }
.bo-tun-champ .bo-tun-case input[type="checkbox"] { width: 18px; height: 18px; padding: 0; accent-color: var(--gold); }
.bo-oblig { color: var(--gold); font-weight: 700; }
.bo-tun-non { color: var(--text-soft); }
.bo-web-lien { color: var(--text-soft); }
.bo-web-lien a { color: inherit; }
.bo-web-suivi { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0 0 10px; font-size: 14px; color: var(--text-soft); }
.bo-web-suivi b { color: var(--text); font-size: 18px; margin-right: 4px; }
.bo-tun-manque { margin: 14px 0 0; padding: 10px 14px; border: 1px dashed var(--gold-line); border-radius: 10px; color: var(--text-soft); font-size: 13px; }
.bo-tun-lien { margin: 14px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; }
.bo-tun-lien a { color: var(--gold); }
.bo-tun-ex { font-size: 12.5px; color: var(--text-muted); font-style: italic; }
/* Tunnels · la photo */
.bo-tun-photo { grid-column: 1 / -1; }
.bo-tun-photo__cadre { aspect-ratio: 21 / 9; max-width: 560px; border-radius: 12px; border: 1px dashed var(--gold-line); background: var(--surface-2); display: grid; place-items: center; overflow: hidden; color: var(--text-muted); font-size: 28px; }
.bo-tun-photo__cadre img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bo-tun-photo label.bo-btn { cursor: pointer; }
.bo-btn--occupe { opacity: .55; pointer-events: none; }
.bo-lien { background: none; border: 0; padding: 0; color: var(--gold); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.bo-btn--danger { color: var(--non); border-color: color-mix(in srgb, var(--non) 45%, transparent); }
.bo-tun-ligne-actions { white-space: nowrap; text-align: right; }
.bo-tun-ligne-actions .bo-oeil + .bo-oeil { margin-left: 6px; }
.bo-tun-corbeille { color: var(--text-muted); font-size: 14px; transition: color .2s cubic-bezier(0.16, 1, 0.3, 1); }
.bo-tun-corbeille:hover { color: var(--non); }
/* Marketing · emails : l'éditeur à gauche, l'aperçu à droite */
.bo-cam { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 1100px) { .bo-cam { grid-template-columns: 1fr; } }
.bo-cam__champs { display: grid; gap: 14px; margin-top: 14px; }
.bo-cam__apercu { position: sticky; top: 16px; }
.bo-cam__apercu iframe { width: 100%; height: 760px; border: 1px solid var(--border); border-radius: 12px; background: #f4f3f0; margin-top: 12px; }
.bo-cam__envoi { margin-top: 16px; align-items: center; }
.bo-cam__test { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-soft); }
.bo-cam__test input { padding: 9px 11px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: inherit; font-size: 13.5px; min-width: 220px; }
[data-cam-manque][data-ok="1"] { border-color: var(--gold-line); color: var(--gold); }
.bo-tun-champ select { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: inherit; font-size: 14px; }
.bo-cam-interrupteur { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 18px; margin-bottom: 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.bo-cam-interrupteur[data-actif="1"] { border-color: var(--gold-line); background: var(--gold-wash); }
.bo-cam-interrupteur b { display: block; color: var(--text); font-size: 14.5px; }
.bo-cam-interrupteur span { color: var(--text-soft); font-size: 13px; }

/* ── Ventes · Offres de la page de commande (21/10) ────────────────────────── */
.of-grille { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 1100px) { .of-grille { grid-template-columns: 1fr; } }
.of-champs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.of-champs .of-large { grid-column: 1 / -1; }
.of-ligne { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.of-ligne input { flex: 1; min-width: 90px; }
.of-pale { color: var(--text-soft); font-weight: 400; }
.of-mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-feature-settings: 'tnum' 1; }
.of-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.of-sous { font-size: 14px; margin: 20px 0 10px; }
.of-titre-hist { font-size: 16px; color: var(--text-soft); margin: 26px 0 10px; }
.of-mode { display: grid; grid-template-columns: auto 1fr 130px 150px; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.of-mode small { display: block; font-size: 12px; }
.of-prix { padding: 9px 11px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: inherit; text-align: right; font-family: 'JetBrains Mono', ui-monospace, monospace; font-feature-settings: 'tnum' 1; }
.of-liens { border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; margin: 0 0 14px; display: grid; gap: 8px; }
.of-liens legend { font-size: 13px; color: var(--text); font-weight: 600; padding: 0 6px; }
.of-coche { display: flex; gap: 8px; align-items: baseline; font-size: 13.5px; color: var(--text-muted); cursor: pointer; overflow-wrap: anywhere; }
.of-coche input { accent-color: var(--gold); }
.bo-ecran[data-ecran="ventes/offres"] { --cm-or: var(--gold); --cm-or-2: var(--gold-2); --cm-or-ligne: var(--gold-line); --cm-or-voile: var(--gold-wash); }

/* ── CRM : la recopie de Brevo (27/10/2026) ─────────────────────────────── */
.crm-listes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.crm-liste { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: var(--r-pill); border: 1px solid var(--border); background: transparent; color: var(--text-muted); font: 600 12.5px var(--f-ui); cursor: pointer; transition: border-color .3s cubic-bezier(.16,1,.3,1), color .3s cubic-bezier(.16,1,.3,1), background .3s cubic-bezier(.16,1,.3,1); }
.crm-liste b { font-family: var(--f-mono); font-feature-settings: 'tnum' 1; color: var(--text-soft); font-weight: 600; }
.crm-liste:hover { border-color: var(--gold-line); color: var(--text); }
.crm-liste[aria-pressed="true"] { border-color: var(--gold); color: var(--gold); background: var(--gold-wash); }
.crm-liste[aria-pressed="true"] b { color: var(--gold); }
.crm-filtres { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.crm-filtres .am-recherche { flex: 1 1 260px; }
.crm-compte { margin-left: auto; color: var(--text-soft); font-size: 13px; }
.chiffre { font-family: var(--f-mono); font-feature-settings: 'tnum' 1; }
.crm-table tbody tr { cursor: pointer; }
.crm-table tbody tr:hover, .crm-table tbody tr.crm-actif { background: var(--gold-wash); }
.crm-table tbody tr:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.crm-table td small { display: block; color: var(--text-soft); font-size: 12px; margin-top: 2px; }
.crm-table .bo-pill { margin: 2px 0; }
.crm-pages { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 14px; color: var(--text-muted); }
.crm-fiche { border-color: var(--gold-line); }
.crm-fiche__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.crm-fiche__grille { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; }
@media (max-width: 900px) { .crm-fiche__grille { grid-template-columns: 1fr; } }
.crm-dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; font-size: 13.5px; }
.crm-dl dt { color: var(--text-soft); }
.crm-dl dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.crm-activite { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.crm-activite div { border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; }
.crm-activite b { display: block; font-size: 22px; color: var(--gold); }
.crm-activite span { font-size: 12px; color: var(--text-soft); }

/* ── Affiliation (27/10/2026) ───────────────────────────────────────────── */
.aff-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.aff-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 16px; margin-bottom: 16px; border: 1px solid var(--gold-line); border-radius: 14px; background: var(--gold-wash); }
.aff-form label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--text-muted); }
.aff-form input { padding: 9px 12px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: 14px var(--f-ui); }
.aff-form input:focus { outline: none; border-color: var(--gold); }
.aff-form__note { grid-column: 1 / -1; }
.aff-form__btns { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }
@media (max-width: 760px) { .aff-form { grid-template-columns: 1fr; } }
.aff-sous { display: block; color: var(--text-soft); font-size: 12px; margin-top: 2px; }
.aff-lien { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 8px; border: 1px solid var(--border); background: transparent; color: var(--gold); cursor: pointer; font-size: 12.5px; transition: border-color .3s cubic-bezier(.16,1,.3,1); }
.aff-lien:hover { border-color: var(--gold-line); }
.aff-inactif td { opacity: .55; }

/* ── CRM · Leads (27/10/2026) ───────────────────────────────────────────── */
.lead-rien { color: var(--text-soft); font-size: 13px; }
.lead-titre { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 22px 0 10px; }
.lead-titre small { letter-spacing: 0; text-transform: none; font-weight: 500; color: var(--text-soft); }
.lead-etape--qualifiee, .lead-etape--rdv_pris { color: var(--gold); border-color: var(--gold-line); background: var(--gold-wash); }
.lead-etape--non_qualifiee, .lead-etape--archivee { opacity: .6; }
.lead-etape-choix { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-soft); }
.lead-rdv { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13.5px; }
.lead-rdv small { color: var(--text-soft); }
.lead-questionnaire { margin-top: 18px; border-top: 1px solid var(--border); padding-top: 12px; }
.lead-questionnaire summary { cursor: pointer; color: var(--gold); font-weight: 600; font-size: 13.5px; margin-bottom: 12px; }
.lead-noter { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--gold-line); border-radius: 14px; background: var(--gold-wash); }
.lead-noter__types { display: flex; flex-wrap: wrap; gap: 6px; }
.lead-noter__types label { cursor: pointer; }
.lead-noter__types input { position: absolute; opacity: 0; pointer-events: none; }
.lead-noter__types span { display: inline-block; padding: 5px 12px; border-radius: var(--r-pill); border: 1px solid var(--border-strong); font-size: 12.5px; color: var(--text-muted); transition: border-color .3s cubic-bezier(.16,1,.3,1), color .3s cubic-bezier(.16,1,.3,1); }
.lead-noter__types input:checked + span { border-color: var(--gold); color: var(--gold); background: var(--surface); }
.lead-noter__types input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.lead-noter textarea { width: 100%; resize: vertical; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: 14px/1.5 var(--f-ui); }
.lead-noter textarea:focus { outline: none; border-color: var(--gold); }
.lead-noter__pied { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--text-soft); }
.lead-histo { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 1px solid var(--gold-line); display: grid; gap: 14px; }
.lead-histo li { position: relative; }
.lead-histo li::before { content: ''; position: absolute; left: -21px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px var(--surface); }
.lead-histo .lead-histo__statut::before { background: var(--surface-3); border: 1px solid var(--gold-line); }
.lead-histo__tete { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.lead-histo__tete span { color: var(--text-soft); font-size: 12px; }
.lead-histo p { margin: 4px 0 0; font-size: 13.5px; color: var(--text-muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.lead-interne { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-soft); cursor: pointer; }
.lead-interne input { accent-color: var(--gold); }
