/* Contacts : types de clients, sélection groupée, import Excel / CSV, audience des campagnes */
.ct-dot { display:inline-block; width:8px; height:8px; border-radius:50%; flex:none; }
.ct-src { width:12px; height:12px; color:var(--muted); flex:none; }

/* Bandeau des types (filtres) */
.ct-types { margin-bottom:12px; padding:10px 12px; }
.ct-types-row { display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
.ct-filter { display:inline-flex; align-items:center; gap:6px; height:30px; padding:0 10px; border:1px solid var(--line); border-radius:99px; background:var(--surface); color:var(--ink-2); font:600 12.5px var(--font); cursor:pointer; transition:border-color .15s, background .15s; }
.ct-filter:hover { border-color:var(--teal); }
.ct-filter em { font-style:normal; font-weight:700; color:var(--muted); font-size:11.5px; }
.ct-filter.on { border-color:var(--teal); background:var(--teal-50); color:var(--teal-700); }
.ct-filter.on em { color:var(--teal-700); }
.ct-filter.add { border-style:dashed; color:var(--muted); }
.ct-filter.add svg { width:13px; height:13px; }
.ct-edit { display:inline-flex; margin-left:2px; opacity:.45; }
.ct-edit svg { width:12px; height:12px; }
.ct-filter:hover .ct-edit { opacity:1; }
.ct-auto { display:flex; align-items:center; gap:8px; margin-top:8px; padding-top:8px; border-top:1px solid var(--line); color:var(--ink-2); }
.ct-auto > svg { width:14px; height:14px; color:var(--teal); flex:none; }
.ct-auto .small { flex:1; min-width:0; }
.ct-empty-types { display:flex; align-items:center; gap:12px; }
.ct-ico { width:36px; height:36px; border-radius:10px; display:grid; place-items:center; background:var(--teal-50); color:var(--teal-700); flex:none; }
.ct-ico svg { width:18px; height:18px; }

/* Liste */
.ct-tools { gap:8px; flex-wrap:wrap; }
.ct-table .ct-cb { width:34px; padding-right:0; }
.ct-table tr.sel td { background:var(--teal-50); }
.ct-chips { display:flex; flex-wrap:wrap; gap:4px; max-width:280px; }
.ct-chip { display:inline-flex; align-items:center; gap:5px; padding:2px 8px; border-radius:99px; background:var(--mist); color:var(--ink-2); font-size:11.5px; font-weight:600; white-space:nowrap; }
.ct-bulk { display:flex; align-items:center; gap:8px; flex-wrap:wrap; padding:8px 14px; background:var(--teal-50); border-bottom:1px solid var(--line); font-size:13px; }
.ct-bulk .select-sm, .ct-bulk select { height:30px; width:auto; min-width:170px; font-size:12.5px; }
.ct-more { display:flex; justify-content:center; padding:10px; border-top:1px solid var(--line); }

/* Éditeur de type */
.ct-colors { display:flex; gap:6px; flex-wrap:wrap; padding-top:4px; }
.ct-color input { position:absolute; opacity:0; pointer-events:none; }
.ct-color i { display:block; width:24px; height:24px; border-radius:50%; cursor:pointer; box-shadow:0 0 0 2px var(--surface), 0 0 0 3px transparent; transition:box-shadow .15s; }
.ct-color input:checked + i { box-shadow:0 0 0 2px var(--surface), 0 0 0 4px var(--ink-2); }
.ct-color input:focus-visible + i { box-shadow:0 0 0 2px var(--surface), 0 0 0 4px var(--teal); }
.ct-modes { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:8px; }
.ct-mode input { position:absolute; opacity:0; pointer-events:none; }
.ct-mode span { display:flex; flex-direction:column; gap:3px; height:100%; padding:10px 12px; border:1.5px solid var(--line); border-radius:var(--radius-sm); cursor:pointer; transition:border-color .15s, background .15s; }
.ct-mode span svg { width:18px; height:18px; color:var(--teal); }
.ct-mode small { color:var(--muted); font-size:12px; line-height:1.4; }
.ct-mode input:checked + span { border-color:var(--teal); background:var(--teal-50); }
.ct-mode input:focus-visible + span { outline:2px solid var(--teal); outline-offset:2px; }

/* Import */
.ct-steps { display:flex; flex-direction:column; gap:12px; }
.ct-step { display:flex; gap:12px; align-items:flex-start; }
.ct-num { width:24px; height:24px; border-radius:50%; background:var(--teal); color:#fff; font-weight:700; font-size:12px; display:grid; place-items:center; flex:none; margin-top:1px; }
.ct-step > div { min-width:0; flex:1; }
.ct-drop { display:flex; align-items:center; justify-content:center; gap:8px; margin-top:8px; min-height:64px; padding:12px; border:1.5px dashed var(--line-strong); border-radius:var(--radius-sm); color:var(--muted); font-size:13px; cursor:pointer; text-align:center; transition:border-color .15s, background .15s; }
.ct-drop svg { width:18px; height:18px; flex:none; }
.ct-drop:hover, .ct-drop.over { border-color:var(--teal); background:var(--teal-50); color:var(--teal-700); }
.ct-drop.has { border-style:solid; border-color:var(--teal); color:var(--ink-2); font-weight:600; }
.ct-pick { display:flex; flex-wrap:wrap; gap:6px; min-height:36px; align-items:center; }
.ct-tog { display:inline-flex; align-items:center; gap:6px; padding:4px 10px; border:1px solid var(--line); border-radius:99px; font-size:12.5px; font-weight:600; cursor:pointer; }
.ct-tog input { margin:0; }
.ct-tog:has(input:checked) { border-color:var(--teal); background:var(--teal-50); }
.ct-report { display:flex; flex-direction:column; gap:10px; padding:12px; border:1px solid var(--line); border-radius:var(--radius-sm); background:var(--surface-alt); }
.ct-kpis { display:grid; grid-template-columns:repeat(5, minmax(0, 1fr)); gap:8px; }
.ct-kpis > div { display:flex; flex-direction:column; padding:8px 10px; border-radius:8px; background:var(--surface); border:1px solid var(--line); }
.ct-kpis b { font-size:18px; line-height:1.2; }
.ct-kpis span { font-size:11.5px; color:var(--muted); }
.ct-kpis .bad b { color:var(--danger); }
.ct-bad summary { cursor:pointer; font-weight:600; font-size:13px; }
.ct-bad .table { margin-top:6px; }
.ct-consent { display:flex; gap:8px; align-items:flex-start; font-size:13px; line-height:1.45; padding:10px 12px; border-radius:var(--radius-sm); background:var(--warning-bg); }
.ct-consent input { margin-top:3px; flex:none; }
.shake { animation:ct-shake .35s; }
@keyframes ct-shake { 25% { transform:translateX(-4px); } 75% { transform:translateX(4px); } }

/* Campagne : audience par types, joignabilité, modèle Meta */
.aud-types { display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
.aud-reach { display:flex; gap:10px; align-items:flex-start; padding:10px 12px; border-radius:var(--radius-sm); background:var(--surface-alt); border:1px solid var(--line); font-size:13px; line-height:1.45; }
.aud-reach > svg { width:16px; height:16px; flex:none; margin-top:2px; color:var(--teal); }
.aud-reach.warn { background:var(--warning-bg); border-color:transparent; }
.aud-reach.warn > svg { color:var(--warning); }
.tpl-vars { display:flex; flex-direction:column; gap:8px; }
.tpl-var { display:flex; align-items:center; gap:8px; }
.tpl-var code { flex:none; min-width:42px; text-align:center; padding:4px 6px; border-radius:6px; background:var(--mist); font-size:12px; }
.tpl-body { white-space:pre-wrap; padding:10px 12px; border-radius:var(--radius-sm); background:var(--surface-alt); border:1px solid var(--line); font-size:13px; line-height:1.5; }

@media (max-width: 760px) {
  .ct-modes { grid-template-columns:1fr; }
  .ct-kpis { grid-template-columns:repeat(2, minmax(0, 1fr)); }
  .ct-table th:nth-child(5), .ct-table td:nth-child(5), .ct-table th:nth-child(6), .ct-table td:nth-child(6) { display:none; }
  .ct-tools .input, .ct-tools .select { max-width:none !important; flex:1 1 100%; }
  .ct-auto { flex-wrap:wrap; }
  .ct-auto .small { flex:1 1 calc(100% - 30px); }
}
:root { --ct-teal:#0f9b9b; --ct-blue:#2f6fdb; --ct-violet:#7c4ddb; --ct-pink:#d4417f; --ct-orange:#e0702a; --ct-amber:#c99410; --ct-green:#2f9a55; --ct-slate:#5b6b7f; --ct-red:#d23b3b; }
.ct-tog em { font-style:normal; }
