/* ==========================================================================
   MarketingPro - VMS26 - Style Principal
   Thème : Dark Electric — industriel moderne, accents néon
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');

:root {
  --mp-bg:          #0d0f14;
  --mp-surface:     #141720;
  --mp-surface2:    #1c2030;
  --mp-border:      rgba(255,255,255,0.07);
  --mp-accent:      #00d4ff;
  --mp-accent2:     #7c3aed;
  --mp-accent3:     #f97316;
  --mp-green:       #10b981;
  --mp-red:         #ef4444;
  --mp-yellow:      #f59e0b;
  --mp-text:        #e2e8f0;
  --mp-text-muted:  #64748b;
  --mp-text-dim:    #94a3b8;
  --mp-email:       #00d4ff;
  --mp-sms:         #a78bfa;
  --mp-facebook:    #1877f2;
  --mp-multi:       #f97316;
  --mp-radius:      12px;
  --mp-radius-lg:   18px;
  --mp-shadow:      0 4px 24px rgba(0,0,0,0.4);
  --mp-glow:        0 0 20px rgba(0,212,255,0.15);
  --mp-font:        'Syne', sans-serif;
  --mp-font-body:   'DM Sans', sans-serif;
}

/* ── Global reset for mktpro pages ─────────────────────────────────── */
.mktpro-wrap * { box-sizing: border-box; }
.mktpro-wrap { font-family: var(--mp-font-body); color: var(--mp-text); }

/* ── Page header ────────────────────────────────────────────────────── */
.mktpro-header {
  background: linear-gradient(135deg, var(--mp-surface) 0%, #1a1f35 100%);
  border-bottom: 1px solid var(--mp-border);
  padding: 24px 32px;
  margin: -12px -12px 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  overflow: hidden;
}
.mktpro-header::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(0,212,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.mktpro-header-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--mp-accent), var(--mp-accent2));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  box-shadow: 0 0 20px rgba(0,212,255,0.3);
  flex-shrink: 0;
}
.mktpro-header-title {
  flex: 1;
}
.mktpro-header-title h1 {
  font-family: var(--mp-font);
  font-size: 22px;
  font-weight: 800;
  color: var(--mp-text);
  margin: 0 0 2px;
  letter-spacing: -0.5px;
}
.mktpro-header-title p {
  font-size: 13px;
  color: var(--mp-text-muted);
  margin: 0;
}
.mktpro-header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

/* ── KPI Cards ──────────────────────────────────────────────────────── */
.mktpro-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.mktpro-kpi {
  background: var(--mp-surface);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius);
  padding: 20px 22px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: default;
}
.mktpro-kpi:hover {
  transform: translateY(-2px);
  box-shadow: var(--mp-shadow), var(--mp-glow);
  border-color: rgba(0,212,255,0.2);
}
.mktpro-kpi::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--kpi-color, var(--mp-accent));
}
.mktpro-kpi-icon {
  font-size: 24px;
  margin-bottom: 10px;
  display: block;
}
.mktpro-kpi-value {
  font-family: var(--mp-font);
  font-size: 32px;
  font-weight: 800;
  color: var(--mp-text);
  line-height: 1;
  margin-bottom: 4px;
}
.mktpro-kpi-label {
  font-size: 12px;
  color: var(--mp-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 500;
}
.mktpro-kpi-trend {
  position: absolute;
  top: 14px; right: 16px;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 20px;
  font-weight: 600;
}
.mktpro-kpi-trend.up   { background: rgba(16,185,129,0.15); color: var(--mp-green); }
.mktpro-kpi-trend.down { background: rgba(239,68,68,0.15);  color: var(--mp-red); }

/* ── Section Card ───────────────────────────────────────────────────── */
.mktpro-card {
  background: var(--mp-surface);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.mktpro-card-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--mp-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.mktpro-card-title {
  font-family: var(--mp-font);
  font-size: 15px;
  font-weight: 700;
  color: var(--mp-text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.mktpro-card-body { padding: 24px; }

/* ── Buttons ────────────────────────────────────────────────────────── */
.mp-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 8px;
  font-family: var(--mp-font-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.mp-btn-primary {
  background: linear-gradient(135deg, var(--mp-accent), #0099cc);
  color: #0a0f1a;
  font-weight: 700;
  box-shadow: 0 0 16px rgba(0,212,255,0.25);
}
.mp-btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); box-shadow: 0 0 24px rgba(0,212,255,0.4); color: #0a0f1a; }
.mp-btn-secondary {
  background: var(--mp-surface2);
  color: var(--mp-text-dim);
  border: 1px solid var(--mp-border);
}
.mp-btn-secondary:hover { background: var(--mp-surface); color: var(--mp-text); border-color: rgba(255,255,255,0.15); }
.mp-btn-danger {
  background: rgba(239,68,68,0.15);
  color: var(--mp-red);
  border: 1px solid rgba(239,68,68,0.2);
}
.mp-btn-danger:hover { background: rgba(239,68,68,0.25); }
.mp-btn-success {
  background: rgba(16,185,129,0.15);
  color: var(--mp-green);
  border: 1px solid rgba(16,185,129,0.2);
}
.mp-btn-success:hover { background: rgba(16,185,129,0.25); }
.mp-btn-sm { padding: 6px 12px; font-size: 12px; }
.mp-btn-lg { padding: 12px 28px; font-size: 15px; }
.mp-btn-icon { width: 36px; height: 36px; padding: 0; justify-content: center; border-radius: 8px; }

/* ── Data Table ─────────────────────────────────────────────────────── */
.mp-table-wrap { overflow-x: auto; }
.mp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.mp-table thead tr { border-bottom: 2px solid var(--mp-border); }
.mp-table thead th {
  padding: 12px 16px;
  text-align: left;
  font-family: var(--mp-font);
  font-size: 11px;
  font-weight: 700;
  color: var(--mp-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  white-space: nowrap;
}
.mp-table tbody tr {
  border-bottom: 1px solid var(--mp-border);
  transition: background 0.15s;
}
.mp-table tbody tr:hover { background: var(--mp-surface2); }
.mp-table tbody tr:last-child { border-bottom: none; }
.mp-table td {
  padding: 13px 16px;
  color: var(--mp-text);
  vertical-align: middle;
}
.mp-table td a { color: var(--mp-accent); text-decoration: none; font-weight: 500; }
.mp-table td a:hover { text-decoration: underline; }

/* ── Status Badges ──────────────────────────────────────────────────── */
.mp-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.mp-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.badge-draft     { background: rgba(100,116,139,0.15); color: #64748b; }
.badge-draft::before { background: #64748b; }
.badge-scheduled { background: rgba(245,158,11,0.15); color: #f59e0b; }
.badge-scheduled::before { background: #f59e0b; animation: pulse-dot 1.5s ease infinite; }
.badge-sending   { background: rgba(0,212,255,0.12); color: var(--mp-accent); }
.badge-sending::before { background: var(--mp-accent); animation: pulse-dot 0.8s ease infinite; }
.badge-sent      { background: rgba(16,185,129,0.12); color: var(--mp-green); }
.badge-sent::before { background: var(--mp-green); }
.badge-paused    { background: rgba(249,115,22,0.12); color: var(--mp-accent3); }
.badge-paused::before { background: var(--mp-accent3); }
.badge-cancelled { background: rgba(239,68,68,0.12); color: var(--mp-red); }
.badge-cancelled::before { background: var(--mp-red); }

/* ── Channel Tag ────────────────────────────────────────────────────── */
.mp-channel {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}
.mp-channel-email    { background: rgba(0,212,255,0.1);   color: var(--mp-email); border: 1px solid rgba(0,212,255,0.2); }
.mp-channel-sms      { background: rgba(167,139,250,0.1); color: var(--mp-sms);   border: 1px solid rgba(167,139,250,0.2); }
.mp-channel-facebook { background: rgba(24,119,242,0.1);  color: var(--mp-facebook); border: 1px solid rgba(24,119,242,0.2); }
.mp-channel-multi    { background: rgba(249,115,22,0.1);  color: var(--mp-multi); border: 1px solid rgba(249,115,22,0.2); }

/* ── Progress Bar ───────────────────────────────────────────────────── */
.mp-progress {
  height: 6px;
  background: var(--mp-surface2);
  border-radius: 10px;
  overflow: hidden;
}
.mp-progress-bar {
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--mp-accent), #0099cc);
  transition: width 0.6s ease;
}
.mp-progress-bar.green { background: linear-gradient(90deg, var(--mp-green), #059669); }
.mp-progress-bar.purple { background: linear-gradient(90deg, var(--mp-sms), var(--mp-accent2)); }

/* ── Forms ──────────────────────────────────────────────────────────── */
.mp-form-group {
  margin-bottom: 20px;
}
.mp-form-label {
  display: block;
  font-family: var(--mp-font);
  font-size: 12px;
  font-weight: 700;
  color: var(--mp-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
}
.mp-form-label .required { color: var(--mp-red); margin-left: 3px; }
.mp-input, .mp-select, .mp-textarea {
  width: 100%;
  background: var(--mp-surface2);
  border: 1px solid var(--mp-border);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--mp-text);
  font-family: var(--mp-font-body);
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.mp-input:focus, .mp-select:focus, .mp-textarea:focus {
  border-color: var(--mp-accent);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.1);
}
.mp-textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
.mp-select option { background: var(--mp-surface2); }

/* ── Radio Channel Selector ─────────────────────────────────────────── */
.mp-channel-selector {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.mp-channel-option input { display: none; }
.mp-channel-option label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: 2px solid var(--mp-border);
  border-radius: 10px;
  cursor: pointer;
  font-family: var(--mp-font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--mp-text-dim);
  transition: all 0.2s;
  background: var(--mp-surface2);
}
.mp-channel-option label:hover { border-color: rgba(255,255,255,0.2); color: var(--mp-text); }
.mp-channel-option input:checked + label { border-color: var(--channel-color, var(--mp-accent)); color: var(--mp-text); background: var(--channel-bg, rgba(0,212,255,0.05)); box-shadow: 0 0 12px var(--channel-glow, rgba(0,212,255,0.2)); }
.mp-channel-icon { font-size: 20px; }

/* ── Campaign Stats Mini ────────────────────────────────────────────── */
.mp-stats-mini {
  display: flex;
  gap: 16px;
  align-items: center;
}
.mp-stat-item { text-align: center; min-width: 50px; }
.mp-stat-val {
  font-family: var(--mp-font);
  font-size: 16px;
  font-weight: 700;
  color: var(--mp-text);
  display: block;
  line-height: 1;
}
.mp-stat-lbl { font-size: 10px; color: var(--mp-text-muted); text-transform: uppercase; margin-top: 2px; }

/* ── Rate Circles ───────────────────────────────────────────────────── */
.mp-rate-circle {
  position: relative;
  width: 80px; height: 80px;
}
.mp-rate-circle svg { transform: rotate(-90deg); }
.mp-rate-circle .rate-bg { fill: none; stroke: var(--mp-surface2); stroke-width: 8; }
.mp-rate-circle .rate-fill { fill: none; stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset 1s ease; }
.mp-rate-circle .rate-text {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--mp-font);
  font-size: 15px;
  font-weight: 800;
  text-align: center;
}

/* ── Source Badge ───────────────────────────────────────────────────── */
.mp-source-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
}
.mp-source-badge .dot {
  width: 16px; height: 16px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
}

/* ── Tabs ───────────────────────────────────────────────────────────── */
.mp-tabs {
  display: flex;
  gap: 2px;
  border-bottom: 2px solid var(--mp-border);
  margin-bottom: 24px;
}
.mp-tab {
  padding: 10px 20px;
  font-family: var(--mp-font);
  font-size: 13px;
  font-weight: 600;
  color: var(--mp-text-muted);
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
  text-decoration: none;
}
.mp-tab:hover { color: var(--mp-text); }
.mp-tab.active { color: var(--mp-accent); border-bottom-color: var(--mp-accent); }

/* ── Empty State ────────────────────────────────────────────────────── */
.mp-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--mp-text-muted);
}
.mp-empty-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.4; }
.mp-empty h3 { font-family: var(--mp-font); font-size: 18px; color: var(--mp-text-dim); margin-bottom: 8px; }
.mp-empty p { font-size: 14px; max-width: 300px; margin: 0 auto; }

/* ── Alert / Flash ──────────────────────────────────────────────────── */
.mp-alert {
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 4px solid;
}
.mp-alert-success { background: rgba(16,185,129,0.08); border-color: var(--mp-green); color: var(--mp-green); }
.mp-alert-error   { background: rgba(239,68,68,0.08);  border-color: var(--mp-red);   color: #fc8181; }
.mp-alert-info    { background: rgba(0,212,255,0.08);  border-color: var(--mp-accent); color: var(--mp-accent); }
.mp-alert-warning { background: rgba(245,158,11,0.08); border-color: var(--mp-yellow); color: var(--mp-yellow); }

/* ── Search / Filter Bar ────────────────────────────────────────────── */
.mp-filter-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.mp-filter-bar .mp-input { max-width: 280px; }
.mp-filter-bar .mp-select { max-width: 160px; }

/* ── Checkbox Toggle ────────────────────────────────────────────────── */
.mp-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--mp-text-dim);
}
.mp-toggle input { display: none; }
.mp-toggle-slider {
  width: 40px; height: 22px;
  background: var(--mp-surface2);
  border: 1px solid var(--mp-border);
  border-radius: 20px;
  position: relative;
  transition: all 0.2s;
}
.mp-toggle-slider::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 14px; height: 14px;
  background: var(--mp-text-muted);
  border-radius: 50%;
  transition: all 0.2s;
}
.mp-toggle input:checked + .mp-toggle-slider { background: rgba(0,212,255,0.15); border-color: var(--mp-accent); }
.mp-toggle input:checked + .mp-toggle-slider::after { background: var(--mp-accent); left: 21px; }

/* ── Rich Text Editor Container ─────────────────────────────────────── */
.mp-editor-wrap {
  border: 1px solid var(--mp-border);
  border-radius: 8px;
  overflow: hidden;
}
.mp-editor-toolbar {
  background: var(--mp-surface2);
  padding: 8px 12px;
  border-bottom: 1px solid var(--mp-border);
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.mp-editor-btn {
  padding: 5px 9px;
  background: none;
  border: 1px solid transparent;
  border-radius: 5px;
  color: var(--mp-text-dim);
  cursor: pointer;
  font-size: 12px;
  transition: all 0.15s;
}
.mp-editor-btn:hover { background: var(--mp-surface); border-color: var(--mp-border); color: var(--mp-text); }
.mp-editor-content {
  min-height: 200px;
  padding: 14px;
  outline: none;
  color: var(--mp-text);
  font-family: var(--mp-font-body);
  font-size: 14px;
  line-height: 1.7;
  background: var(--mp-surface2);
}

/* ── Subscriber Optin Icons ─────────────────────────────────────────── */
.mp-optin-icons { display: flex; gap: 6px; }
.mp-optin-icon {
  width: 24px; height: 24px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  opacity: 0.3;
}
.mp-optin-icon.active { opacity: 1; }
.mp-optin-email.active    { background: rgba(0,212,255,0.15); color: var(--mp-email); }
.mp-optin-sms.active      { background: rgba(167,139,250,0.15); color: var(--mp-sms); }
.mp-optin-social.active   { background: rgba(24,119,242,0.15); color: var(--mp-facebook); }

/* ── Import Section ─────────────────────────────────────────────────── */
.mp-import-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.mp-import-card {
  border: 2px dashed var(--mp-border);
  border-radius: var(--mp-radius);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--mp-surface2);
}
.mp-import-card:hover { border-color: var(--mp-accent); background: rgba(0,212,255,0.03); }
.mp-import-card-icon { font-size: 32px; margin-bottom: 10px; }
.mp-import-card-label { font-family: var(--mp-font); font-weight: 700; font-size: 14px; color: var(--mp-text); margin-bottom: 4px; }
.mp-import-card-desc { font-size: 12px; color: var(--mp-text-muted); }

/* ── Admin Settings Sections ────────────────────────────────────────── */
.mp-settings-section {
  background: var(--mp-surface);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius-lg);
  margin-bottom: 20px;
  overflow: hidden;
}
.mp-settings-section-header {
  padding: 16px 24px;
  background: var(--mp-surface2);
  border-bottom: 1px solid var(--mp-border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.mp-settings-section-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.mp-settings-section-header h3 {
  font-family: var(--mp-font);
  font-size: 14px;
  font-weight: 700;
  color: var(--mp-text);
  margin: 0;
}
.mp-settings-section-header p {
  font-size: 12px;
  color: var(--mp-text-muted);
  margin: 2px 0 0;
}
.mp-settings-body { padding: 24px; }

/* ── Animations ─────────────────────────────────────────────────────── */
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.6; }
}
@keyframes mp-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes mp-count-up {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.mp-fade-in { animation: mp-fade-in 0.4s ease forwards; }
.mp-fade-in-1 { animation-delay: 0.05s; opacity: 0; }
.mp-fade-in-2 { animation-delay: 0.1s;  opacity: 0; }
.mp-fade-in-3 { animation-delay: 0.15s; opacity: 0; }
.mp-fade-in-4 { animation-delay: 0.2s;  opacity: 0; }
.mp-fade-in-5 { animation-delay: 0.25s; opacity: 0; }

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .mktpro-header { padding: 16px 20px; }
  .mktpro-header-title h1 { font-size: 18px; }
  .mktpro-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .mp-table { font-size: 12px; }
  .mp-table td, .mp-table th { padding: 10px 12px; }
  .mktpro-header-actions { display: none; }
  .mp-filter-bar { flex-direction: column; align-items: stretch; }
  .mp-filter-bar .mp-input, .mp-filter-bar .mp-select { max-width: 100%; }
}

/* ── Dolibarr integration overrides ─────────────────────────────────── */
.mktpro-wrap .tabBar, .mktpro-wrap .titre { display: none; }

/* ============================================================
   PANNEAU IA - Génération de contenu via Claude
   ============================================================ */

.mp-ai-card {
  background: linear-gradient(135deg,
    rgba(168,85,247,0.05) 0%,
    rgba(99,102,241,0.05) 100%) !important;
}
.mp-ai-card:hover {
  border-color: rgba(168,85,247,0.5) !important;
  box-shadow: 0 0 24px rgba(168,85,247,0.1);
}

.mp-ai-sparkle {
  animation: sparkle 2s ease-in-out infinite;
}
@keyframes sparkle {
  0%, 100% { opacity: 1; filter: drop-shadow(0 0 4px rgba(168,85,247,0.8)); }
  50%       { opacity: 0.6; filter: none; }
}

.mp-btn-ai {
  width: 100%;
  justify-content: center;
  background: linear-gradient(135deg, #7c3aed, #6366f1);
  color: #fff;
  border: none;
  font-weight: 700;
  letter-spacing: 0.02em;
  gap: 8px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}
.mp-btn-ai::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.mp-btn-ai:hover::before { opacity: 1; }
.mp-btn-ai:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(124,58,237,0.4); }

.mp-btn-ai-loading {
  pointer-events: none;
}
.mp-btn-ai-loading::after {
  content: '';
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%);
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }

.mp-ai-btn-icon {
  font-size: 1rem;
  transition: transform 0.3s;
}
.mp-btn-ai:hover .mp-ai-btn-icon { transform: rotate(20deg) scale(1.2); }

/* Résultats IA */
.mp-ai-result-header {
  font-size: 0.75rem;
  font-weight: 700;
  color: #a78bfa;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(168,85,247,0.2);
}

.mp-ai-result-item {
  border: 1px solid rgba(168,85,247,0.2);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s;
  background: rgba(168,85,247,0.04);
  position: relative;
}
.mp-ai-result-item:hover {
  border-color: #7c3aed;
  background: rgba(168,85,247,0.1);
  transform: translateX(2px);
}

.mp-ai-result-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #a78bfa;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.mp-ai-result-preview {
  font-size: 0.8rem;
  color: var(--mp-text);
  line-height: 1.5;
  max-height: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.mp-ai-result-long {
  max-height: 80px;
}
.mp-ai-result-preview * { font-size: 0.8rem !important; }

.mp-ai-result-action {
  font-size: 0.68rem;
  color: #7c3aed;
  margin-top: 8px;
  font-weight: 600;
  transition: color 0.2s;
}
.mp-ai-result-item:hover .mp-ai-result-action { color: #a78bfa; }

/* Section IA dans l'admin */
.mp-admin-ai-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 20px;
  background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(99,102,241,0.2));
  border: 1px solid rgba(168,85,247,0.3);
  font-size: 0.72rem; font-weight: 700;
  color: #a78bfa; letter-spacing: 0.04em;
}
