/* Admin Créa Customa — DA Instagram (alignée theme.css) */

:root {
  --s1: var(--ig-surface);
  --s2: var(--ig-bg);
  --dark: var(--ig-bg);
  --cyan: var(--ig-blue);
}

body.admin-body {
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background: var(--ig-bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 149, 246, .06), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(131, 58, 180, .04), transparent);
}

a {
  color: var(--ig-blue);
  text-decoration: none;
  font-weight: 500;
  transition: color .15s;
}

a:hover {
  color: var(--ig-blue-hover);
}

.admin-shell {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 260px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: var(--ig-surface);
  border-right: 1px solid var(--ig-border);
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 200;
}

.admin-sidebar-brand {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: 1.15rem 1rem 1.05rem;
  border-bottom: 1px solid var(--ig-border);
  background: linear-gradient(180deg, rgba(0, 149, 246, .04), transparent);
}

.admin-sidebar-brand .logo {
  display: inline-flex;
  line-height: 0;
  flex-shrink: 0;
}

.admin-sidebar-brand .logo-img {
  height: 28px;
  width: auto;
  max-width: 110px;
}

.admin-sidebar-brand-text {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  min-width: 0;
}

.admin-sidebar-title {
  font-size: .9375rem;
  font-weight: 700;
  letter-spacing: -.025em;
  color: var(--ig-text);
  line-height: 1.15;
}

.admin-sidebar-subtitle {
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--ig-muted);
  line-height: 1.2;
}

.admin-badge {
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .22rem .5rem;
  border-radius: 999px;
  background: rgba(0, 149, 246, .1);
  color: var(--ig-blue);
  border: 1px solid rgba(0, 149, 246, .15);
  align-self: flex-start;
}

.admin-badge--account {
  font-size: .5625rem;
  padding: .12rem .38rem;
  letter-spacing: .05em;
  margin-top: .2rem;
}

.admin-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: .65rem .65rem 1rem;
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--ig-border) transparent;
}

.admin-nav-group + .admin-nav-group {
  margin-top: .15rem;
  padding-top: .85rem;
  border-top: 1px solid var(--ig-border);
}

.admin-nav-group-label {
  margin: 0 0 .45rem;
  padding: 0 .65rem;
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ig-muted);
}

.admin-nav-group-links {
  display: flex;
  flex-direction: column;
  gap: .12rem;
}

.admin-sidebar-link {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .52rem .65rem;
  border-radius: 10px;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--ig-muted);
  border: 1px solid transparent;
  transition: color .15s, background .15s, border-color .15s, box-shadow .15s;
}

.admin-sidebar-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 8px;
  background: var(--ig-bg);
  color: var(--ig-muted);
  transition: background .15s, color .15s;
}

.admin-sidebar-link-icon svg {
  width: 1rem;
  height: 1rem;
}

.admin-sidebar-link-text {
  min-width: 0;
  line-height: 1.25;
}

.admin-sidebar-link:hover {
  color: var(--ig-text);
  background: var(--ig-bg);
}

.admin-sidebar-link:hover .admin-sidebar-link-icon {
  color: var(--ig-text);
  background: #fff;
}

.admin-sidebar-link.active {
  color: var(--ig-blue);
  background: rgba(0, 149, 246, .08);
  border-color: rgba(0, 149, 246, .12);
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--ig-blue);
}

.admin-sidebar-link.active .admin-sidebar-link-icon {
  color: var(--ig-blue);
  background: rgba(0, 149, 246, .12);
}

.admin-sidebar-account {
  padding: .85rem 1rem 1rem;
  border-top: 1px solid var(--ig-border);
  display: flex;
  flex-direction: column;
  gap: .55rem;
  background: linear-gradient(180deg, transparent, rgba(0, 149, 246, .03));
}

.admin-sidebar-account-user {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.admin-sidebar-email {
  font-size: .75rem;
  color: var(--ig-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-sidebar-logout {
  font-size: .8125rem;
  font-weight: 500;
  color: var(--ig-error) !important;
  padding: .45rem .85rem;
  border-radius: 8px;
  transition: background .15s;
}

.admin-sidebar-logout:hover {
  color: #c13545 !important;
  background: rgba(237, 73, 86, .06);
}

.admin-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 199;
  border: none;
  padding: 0;
  margin: 0;
  background: rgba(0, 0, 0, .4);
  cursor: pointer;
}

.admin-main {
  flex: 1;
  min-width: 0;
  padding: 1.25rem 1.75rem 2.5rem;
  max-width: calc(100vw - 260px);
}

.admin-main-bar {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-bottom: 1.25rem;
}

.admin-sidebar-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: .5rem;
  border: 1px solid var(--ig-border);
  border-radius: 10px;
  background: var(--ig-surface);
  cursor: pointer;
  flex-shrink: 0;
}

.admin-sidebar-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ig-text);
  border-radius: 1px;
}

.admin-page-title {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -.02em;
  margin: 0;
  color: var(--ig-text);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stats-block {
  min-width: 0;
}

.stats-block-title {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--ig-muted);
  margin: 0 0 .65rem;
  letter-spacing: .02em;
}

.stats-block--meta .stats-block-title {
  color: #1877f2;
}

.stats-block .stats {
  margin-bottom: 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: .75rem;
  margin-bottom: 1.5rem;
}

.stat {
  background: var(--ig-surface);
  border: 1px solid var(--ig-border);
  border-radius: 12px;
  padding: 1.15rem 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .03);
}

.stat strong {
  display: block;
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -.02em;
  margin-bottom: .2rem;
  color: var(--ig-text);
}

.stat span {
  font-size: .75rem;
  color: var(--ig-muted);
  font-weight: 500;
}

.card {
  background: var(--ig-surface);
  border: 1px solid var(--ig-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .03);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}

th,
td {
  padding: .85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--ig-border);
  vertical-align: top;
}

th {
  font-size: .6875rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ig-muted);
  font-weight: 600;
  background: var(--ig-bg);
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: rgba(0, 149, 246, .02);
}

.msg-excerpt {
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ig-muted);
}

.status {
  display: inline-block;
  padding: .22rem .55rem;
  border-radius: 999px;
  font-size: .6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.status-nouveau {
  background: rgba(237, 73, 86, .1);
  color: var(--ig-error);
  border: 1px solid rgba(237, 73, 86, .15);
}

.status-traite {
  background: rgba(88, 195, 34, .1);
  color: #3d9418;
  border: 1px solid rgba(88, 195, 34, .2);
}

.status-a_contacter {
  background: rgba(0, 149, 246, .1);
  color: var(--ig-blue);
  border: 1px solid rgba(0, 149, 246, .2);
}

.status-presentation_envoyee {
  background: rgba(131, 58, 180, .1);
  color: #833ab4;
  border: 1px solid rgba(131, 58, 180, .2);
}

.status-rappel_1 {
  background: rgba(0, 149, 246, .1);
  color: #0077c8;
  border: 1px solid rgba(0, 149, 246, .22);
}

.status-rappel_2 {
  background: rgba(252, 175, 69, .14);
  color: #c07a00;
  border: 1px solid rgba(252, 175, 69, .28);
}

.status-rappel_3 {
  background: rgba(237, 73, 86, .1);
  color: #c62828;
  border: 1px solid rgba(237, 73, 86, .2);
}

.status-injoignable {
  background: rgba(115, 115, 115, .14);
  color: #525252;
  border: 1px solid rgba(115, 115, 115, .25);
}

.status-en_discussion,
.status-en_cours {
  background: rgba(252, 175, 69, .12);
  color: #c07a00;
  border: 1px solid rgba(252, 175, 69, .25);
}

.status-devis_en_cours {
  background: rgba(253, 203, 92, .15);
  color: #b8860b;
  border: 1px solid rgba(253, 203, 92, .35);
}

.status-gagne {
  background: rgba(88, 195, 34, .1);
  color: #3d9418;
  border: 1px solid rgba(88, 195, 34, .2);
}

.status-perdu {
  background: rgba(115, 115, 115, .12);
  color: #737373;
  border: 1px solid rgba(115, 115, 115, .2);
}

.source-badge {
  display: inline-block;
  padding: .2rem .45rem;
  border-radius: 999px;
  font-size: .625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.source-site {
  background: var(--ig-bg);
  color: var(--ig-muted);
  border: 1px solid var(--ig-border);
}

.source-meta {
  background: rgba(0, 149, 246, .1);
  color: var(--ig-blue);
  border: 1px solid rgba(0, 149, 246, .15);
}

select,
.admin-input,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="number"],
textarea {
  background: var(--ig-bg);
  border: 1px solid var(--ig-border);
  color: var(--ig-text);
  padding: .6rem .75rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: .875rem;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

select {
  padding: .4rem .55rem;
  font-size: .8125rem;
}

select:focus,
.admin-input:focus,
input:focus,
textarea:focus {
  border-color: var(--ig-blue);
  box-shadow: 0 0 0 3px rgba(0, 149, 246, .12);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  padding: .6rem 1rem;
  background: var(--ig-blue);
  color: #fff !important;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 149, 246, .22);
  transition: background .2s, transform .15s, box-shadow .2s;
}

.btn:hover {
  background: var(--ig-blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 149, 246, .3);
}

.btn-sm {
  padding: .38rem .7rem;
  font-size: .75rem;
  border-radius: 8px;
  box-shadow: none;
}

.btn-sm:hover {
  transform: none;
}

.btn:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--ig-border);
  color: var(--ig-text) !important;
  box-shadow: none;
}

.btn-ghost:hover {
  background: var(--ig-bg);
  border-color: #c7c7c7;
  transform: none;
  box-shadow: none;
}

.btn-danger {
  color: var(--ig-error) !important;
  border-color: rgba(237, 73, 86, .25);
}

.btn-danger:hover {
  background: rgba(237, 73, 86, .06);
  border-color: rgba(237, 73, 86, .35);
}

.alert {
  padding: .85rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  font-size: .875rem;
  line-height: 1.45;
}

.alert-ok {
  background: rgba(88, 195, 34, .08);
  color: #3d9418;
  border: 1px solid rgba(88, 195, 34, .2);
}

.alert-err {
  background: rgba(237, 73, 86, .08);
  color: var(--ig-error);
  border: 1px solid rgba(237, 73, 86, .15);
}

.detail {
  background: var(--ig-bg);
  padding: 1rem 1.1rem;
  margin: .35rem 0;
  border-radius: 10px;
  font-size: .875rem;
  line-height: 1.6;
  border: 1px solid var(--ig-border);
}

.detail dt {
  color: var(--ig-muted);
  font-size: .6875rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-top: .75rem;
}

.filter {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  align-items: center;
}

.filter a {
  padding: .4rem .75rem;
  border-radius: 999px;
  font-size: .8125rem;
  color: var(--ig-muted);
  border: 1px solid var(--ig-border);
  background: var(--ig-surface);
  font-weight: 500;
}

.filter a.active,
.filter a:hover {
  color: var(--ig-blue);
  border-color: rgba(0, 149, 246, .35);
  background: rgba(0, 149, 246, .06);
}

.leads-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem 1rem;
  margin-bottom: 1rem;
}

.leads-meta-import {
  flex-shrink: 0;
}

.leads-meta-import .btn {
  white-space: nowrap;
}

.leads-search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
}

.leads-search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.leads-search-input {
  flex: 1 1 14rem;
  min-width: 12rem;
  max-width: 28rem;
  min-height: 2.25rem;
  padding: .5rem .75rem;
  border: 1px solid var(--ig-border);
  border-radius: 999px;
  background: var(--ig-surface);
  font: inherit;
  font-size: .875rem;
  color: var(--ig-text);
}

.leads-search-input:focus {
  outline: none;
  border-color: rgba(0, 149, 246, .45);
  box-shadow: 0 0 0 3px rgba(0, 149, 246, .12);
}

.leads-search-btn {
  border-radius: 999px;
}

.leads-search-clear {
  border-radius: 999px;
}

/* ——— Leads list + modal ——— */
.leads-list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: .65rem;
}

.leads-list-head,
.lead-row {
  display: grid;
  grid-template-columns: 6.75rem minmax(0, 1fr) 7.25rem 6.75rem;
  gap: .85rem 1rem;
  align-items: center;
  width: 100%;
}

.leads-list-head {
  padding: .35rem 1rem .55rem;
  font-size: .6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ig-muted);
  border-bottom: 1px solid var(--ig-border);
  margin-bottom: .15rem;
}

.lead-row {
  padding: .9rem 1rem;
  border: 1px solid var(--ig-border);
  border-radius: 12px;
  background: var(--ig-surface);
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, background .15s;
}

.lead-row:hover {
  border-color: rgba(0, 149, 246, .35);
  background: rgba(0, 149, 246, .03);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}

.lead-row:focus-visible {
  outline: none;
  border-color: var(--ig-blue);
  box-shadow: 0 0 0 3px rgba(0, 149, 246, .15);
}

.lead-main {
  min-width: 0;
}

.lead-name {
  font-size: .9375rem;
  font-weight: 600;
  color: var(--ig-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lead-source-col,
.lead-date-col,
.lead-status-col {
  flex-shrink: 0;
  min-width: 0;
}

.lead-source-col {
  display: flex;
  align-items: center;
}

.lead-source-col .source-badge {
  text-transform: none;
  font-size: .75rem;
  letter-spacing: 0;
  white-space: nowrap;
}

.lead-date-col {
  display: flex;
  align-items: center;
}

.lead-status-col {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.lead-date {
  font-size: .75rem;
  color: var(--ig-muted);
  white-space: nowrap;
}

.lead-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: leadModalFade .2s ease;
}

.lead-modal-overlay[hidden] {
  display: none;
}

@keyframes leadModalFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lead-modal {
  width: 100%;
  max-width: 760px;
  max-height: min(92vh, 900px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--ig-surface);
  border-radius: 16px;
  border: 1px solid var(--ig-border);
  box-shadow: 0 24px 48px rgba(0, 0, 0, .18);
  animation: leadModalSlide .25s ease;
}

@keyframes leadModalSlide {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: none; }
}

.lead-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-shrink: 0;
  padding: 1.25rem 1.25rem .75rem;
  border-bottom: 1px solid var(--ig-border);
}

.lead-modal-title {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -.02em;
  margin: 0 0 .35rem;
}

.lead-modal-sub {
  font-size: .8125rem;
  color: var(--ig-muted);
}

.lead-modal-close {
  background: var(--ig-bg);
  border: 1px solid var(--ig-border);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ig-muted);
  flex-shrink: 0;
}

.lead-modal-close:hover {
  color: var(--ig-text);
  border-color: #c7c7c7;
}

.lead-modal-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 1rem 1.25rem;
  -webkit-overflow-scrolling: touch;
}

.lead-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem 1rem;
  margin-bottom: 1rem;
}

.lead-detail-item {
  min-width: 0;
}

.lead-detail-item.full {
  grid-column: 1 / -1;
}

.lead-detail-label {
  display: block;
  font-size: .625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ig-muted);
  margin-bottom: .2rem;
}

.lead-detail-value {
  font-size: .875rem;
  color: var(--ig-text);
  word-break: break-word;
}

.lead-detail-value a {
  color: var(--ig-blue);
}

.lead-modal-message {
  background: var(--ig-bg);
  border: 1px solid var(--ig-border);
  border-radius: 10px;
  padding: .85rem 1rem;
  font-size: .875rem;
  line-height: 1.6;
  white-space: pre-wrap;
  max-height: 200px;
  overflow: auto;
}

.lead-note-interne {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ig-border);
}

.lead-note-hint {
  margin: .2rem 0 .5rem;
  font-size: .75rem;
  color: var(--ig-muted);
  line-height: 1.4;
}

.lead-note-textarea {
  display: block;
  width: 100%;
  min-height: 5.5rem;
  margin-bottom: .5rem;
  padding: .65rem .75rem;
  font-family: inherit;
  font-size: .875rem;
  line-height: 1.5;
  resize: vertical;
}

.lead-note-badge {
  font-size: .75rem;
  opacity: .75;
  vertical-align: middle;
}

.lead-pipeline {
  display: flex;
  gap: .25rem;
  margin-bottom: 1.1rem;
  padding-bottom: .85rem;
  border-bottom: 1px solid var(--ig-border);
  overflow-x: auto;
}

.lead-pipeline-step {
  flex: 1 0 72px;
  min-width: 72px;
  text-align: center;
  font-size: .625rem;
  line-height: 1.25;
  color: var(--ig-muted);
}

.lead-pipeline-dot {
  display: block;
  width: 10px;
  height: 10px;
  margin: 0 auto .35rem;
  border-radius: 50%;
  background: var(--ig-border);
}

.lead-pipeline-step.done .lead-pipeline-dot {
  background: #3d9418;
}

.lead-pipeline-step.current .lead-pipeline-dot {
  background: var(--ig-blue);
  box-shadow: 0 0 0 3px rgba(0, 149, 246, .2);
}

.lead-pipeline-step.current .lead-pipeline-label {
  color: var(--ig-blue);
  font-weight: 600;
}

.lead-pipeline-step.lost .lead-pipeline-dot {
  background: #737373;
}

.lead-pipeline-step.lost .lead-pipeline-label {
  color: #737373;
  font-weight: 600;
}

.lead-form-presentation {
  flex: 1 1 100%;
  margin-bottom: .15rem;
}

.lead-email-trace {
  margin-bottom: 1rem;
}

.lead-email-trace-list {
  list-style: none;
  margin: .35rem 0 0;
  padding: 0;
  border: 1px solid var(--ig-border);
  border-radius: 10px;
  overflow: hidden;
}

.lead-email-trace-item {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  padding: .5rem .75rem;
  font-size: .8125rem;
  border-bottom: 1px solid var(--ig-border);
  background: var(--ig-bg);
}

.lead-email-trace-item:last-child {
  border-bottom: none;
}

.lead-email-trace-item.sent {
  background: #fff;
}

.lead-email-trace-item.sent .lead-email-trace-step {
  color: var(--ig-text);
  font-weight: 600;
}

.lead-email-trace-item.sent .lead-email-trace-date {
  color: #3d9418;
}

.lead-email-trace-step {
  color: var(--ig-muted);
}

.lead-email-trace-date {
  color: var(--ig-muted);
  white-space: nowrap;
  font-size: .75rem;
}

.lead-phone-track {
  margin-bottom: 1rem;
}

.lead-phone-trace-list {
  list-style: none;
  margin: .35rem 0 0;
  padding: 0;
  border: 1px solid var(--ig-border);
  border-radius: 10px;
  overflow: hidden;
}

.lead-phone-trace-item {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  padding: .5rem .75rem;
  font-size: .8125rem;
  border-bottom: 1px solid var(--ig-border);
  background: var(--ig-bg);
}

.lead-phone-trace-item:last-child {
  border-bottom: none;
}

.lead-phone-trace-item.done {
  background: #fff;
}

.lead-phone-trace-item.done .lead-phone-trace-step {
  color: var(--ig-text);
  font-weight: 600;
}

.lead-phone-trace-item.done .lead-phone-trace-date {
  color: #3d9418;
}

.lead-phone-trace-item.current {
  background: rgba(0, 149, 246, .06);
}

.lead-phone-trace-item.current .lead-phone-trace-step {
  color: var(--ig-blue);
  font-weight: 600;
}

.lead-phone-trace-item.current .lead-phone-trace-date {
  color: var(--ig-blue);
  font-weight: 500;
}

.lead-phone-trace-item.lost {
  background: rgba(115, 115, 115, .08);
}

.lead-phone-trace-item.lost .lead-phone-trace-step {
  color: #525252;
  font-weight: 600;
}

.lead-phone-trace-item.lost .lead-phone-trace-date {
  color: #737373;
}

.lead-phone-trace-step {
  color: var(--ig-muted);
}

.lead-phone-trace-date {
  color: var(--ig-muted);
  white-space: nowrap;
  font-size: .75rem;
  text-align: right;
}

.lead-phone-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-top: .65rem;
}

.lead-phone-action-form {
  margin: 0;
}

.lead-phone-statut-btns {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}

.lead-phone-statut-form {
  margin: 0;
}

.lead-phone-statut-btn {
  display: inline-flex;
  align-items: center;
  padding: .32rem .65rem;
  font-size: .6875rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: 999px;
  border: 1px solid var(--ig-border);
  background: var(--ig-surface);
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .12s;
}

.lead-phone-statut-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}

.lead-phone-statut-btn.is-active {
  box-shadow: 0 0 0 2px rgba(0, 149, 246, .25);
  font-weight: 700;
}

.lead-phone-hint {
  margin: .5rem 0 0;
  font-size: .75rem;
  line-height: 1.45;
}

.lead-sms-track {
  margin-bottom: 1rem;
  padding-top: .15rem;
}

.lead-sms-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-top: .5rem;
}

.lead-sms-log-form {
  margin: 0;
}

.lead-sms-btn {
  background: rgba(131, 58, 180, .1);
  border: 1px solid rgba(131, 58, 180, .25);
  color: #833ab4;
}

.lead-sms-btn:hover:not(:disabled) {
  background: rgba(131, 58, 180, .16);
  border-color: rgba(131, 58, 180, .35);
}

.lead-sms-btn:disabled {
  opacity: .65;
  cursor: not-allowed;
}

.lead-sms-twilio-btn {
  background: #f22f46;
  border: 1px solid #f22f46;
  color: #fff;
}

.lead-sms-twilio-btn:hover:not(:disabled) {
  background: #d9263a;
  border-color: #d9263a;
}

.lead-sms-preview {
  margin: .35rem 0 0;
  font-size: .78rem;
  line-height: 1.45;
  font-style: italic;
}

.lead-sms-hint {
  margin: .45rem 0 0;
  font-size: .75rem;
  line-height: 1.45;
}

.lead-compose-email {
  margin-top: 1.15rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--ig-border);
}

.lead-compose-hint {
  margin: 0 0 .75rem;
  font-size: .75rem;
  color: var(--ig-muted);
  line-height: 1.45;
}

.lead-compose-form {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}

.lead-compose-label {
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ig-muted);
}

.lead-compose-input,
.lead-compose-textarea {
  width: 100%;
  padding: .55rem .7rem;
  border: 1px solid var(--ig-border);
  border-radius: 8px;
  background: var(--ig-surface);
  font: inherit;
  font-size: .8125rem;
  color: var(--ig-text);
}

.lead-compose-input:focus,
.lead-compose-textarea:focus {
  outline: none;
  border-color: var(--ig-blue);
  box-shadow: 0 0 0 3px rgba(0, 149, 246, .12);
}

.lead-compose-textarea {
  min-height: 7rem;
  resize: vertical;
  line-height: 1.5;
}

.lead-compose-options {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1rem;
  margin: .15rem 0 .35rem;
}

.lead-compose-check {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .75rem;
  color: var(--ig-muted);
  cursor: pointer;
}

.lead-custom-email-history {
  margin-top: 1rem;
}

.lead-custom-email-list {
  list-style: none;
  margin: .35rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}

.lead-custom-email-item {
  padding: .55rem .65rem;
  border: 1px solid var(--ig-border);
  border-radius: 8px;
  background: var(--ig-bg);
}

.lead-custom-email-subject {
  display: block;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--ig-text);
}

.lead-custom-email-meta {
  display: block;
  font-size: .6875rem;
  color: var(--ig-muted);
  margin-top: .15rem;
}

.lead-custom-email-preview {
  display: block;
  font-size: .75rem;
  color: var(--ig-muted);
  margin-top: .25rem;
  line-height: 1.4;
}

.emails-template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .75rem;
}

.emails-template-card {
  padding: .85rem 1rem;
  border: 1px solid var(--ig-border);
  border-radius: 10px;
  background: var(--ig-bg);
}

.emails-template-card h3 {
  margin: 0 0 .35rem;
  font-size: .875rem;
}

.emails-template-subject {
  margin: 0 0 .5rem;
  font-size: .75rem;
  font-weight: 600;
  color: var(--ig-text);
}

.emails-template-preview {
  margin: 0;
  font-size: .75rem;
  color: var(--ig-muted);
  line-height: 1.45;
}

.emails-templates-card {
  padding: 1.25rem 1.35rem;
  margin-bottom: 1.25rem;
}

.emails-templates-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem 1rem;
  margin-bottom: 1rem;
}

.emails-templates-head h2 {
  margin: 0 0 .35rem;
  font-size: 1rem;
}

.emails-templates-head p {
  margin: 0;
  font-size: .82rem;
  color: var(--ig-muted);
  line-height: 1.5;
}

.emails-templates-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.emails-template-grid--edit {
  align-items: stretch;
}

.emails-template-card--edit {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}

.emails-template-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .15rem;
}

.emails-template-card-head h3 {
  margin: 0;
  font-size: .875rem;
}

.emails-template-key {
  font-size: .65rem;
  color: var(--ig-muted);
  background: var(--ig-surface);
  padding: .15rem .4rem;
  border-radius: 4px;
}

.emails-template-label {
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ig-muted);
}

.emails-template-body {
  min-height: 9rem;
  resize: vertical;
  line-height: 1.5;
  font-family: inherit;
}

.emails-templates-actions {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.emails-template-reset-form {
  display: none;
}

.emails-history-table td {
  font-size: .8125rem;
  vertical-align: top;
}

.emails-history-table .nowrap {
  white-space: nowrap;
}

.emails-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  align-items: start;
}

.emails-compose-card {
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, .05);
}

.emails-compose-card::before {
  content: '';
  display: block;
  height: 3px;
  background: var(--ig-gradient, linear-gradient(45deg, #405DE6, #833AB4, #E1306C, #FCAF45));
}

.emails-compose-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem .35rem;
  background: linear-gradient(180deg, rgba(0, 149, 246, .05), transparent);
}

.emails-compose-kicker {
  display: block;
  margin-bottom: .25rem;
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ig-blue);
}

.emails-compose-head h2 {
  margin: 0 0 .25rem;
  font-size: 1.125rem;
  letter-spacing: -.02em;
}

.emails-compose-head p {
  margin: 0;
  font-size: .8125rem;
  color: var(--ig-muted);
  line-height: 1.45;
}

.emails-compose-status {
  flex-shrink: 0;
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .35rem .55rem;
  border-radius: 999px;
  border: 1px solid var(--ig-border);
  background: var(--ig-bg);
  color: var(--ig-muted);
}

.emails-compose-status.is-ok {
  color: #3d9418;
  border-color: rgba(88, 195, 34, .28);
  background: rgba(88, 195, 34, .08);
}

.emails-compose-status.is-off {
  color: var(--ig-error);
  border-color: rgba(237, 73, 86, .22);
  background: rgba(237, 73, 86, .06);
}

.emails-compose-form {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 1.35rem 1.35rem;
}

.emails-compose-step {
  padding-top: 1rem;
  border-top: 1px solid var(--ig-border);
}

.emails-compose-step:first-of-type {
  border-top: none;
  padding-top: .65rem;
}

.emails-compose-step-head {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: .85rem;
}

.emails-compose-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: rgba(0, 149, 246, .1);
  color: var(--ig-blue);
  font-size: .6875rem;
  font-weight: 700;
}

.emails-compose-step-head h3 {
  margin: 0;
  font-size: .875rem;
  font-weight: 600;
  color: var(--ig-text);
}

.emails-compose-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem;
}

.emails-compose-grid--message {
  align-items: end;
}

.emails-field-grow {
  min-width: 0;
}

.emails-field label {
  display: block;
  margin-bottom: .4rem;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ig-muted);
}

.emails-optional {
  font-weight: 500;
  letter-spacing: 0;
  text-transform: lowercase;
  color: #b0b0b0;
}

.emails-compose-form .emails-input,
.emails-compose-form .admin-input.emails-input {
  width: 100%;
  min-height: 2.625rem;
  padding: .625rem .8rem;
  border: 1.5px solid var(--ig-border);
  border-radius: 10px;
  background: var(--ig-bg);
  font-size: .875rem;
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.emails-compose-form .emails-input:focus,
.emails-compose-form .admin-input.emails-input:focus {
  outline: none;
  border-color: var(--ig-blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 149, 246, .12);
}

.emails-input-search {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238E8E8E' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: .8rem center;
  padding-left: 2.25rem;
}

.emails-recipient-block {
  padding: .9rem;
  border: 1px solid var(--ig-border);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(0, 149, 246, .03), var(--ig-surface));
}

.emails-recipient-tabs {
  display: inline-flex;
  gap: .25rem;
  padding: .25rem;
  margin-bottom: .85rem;
  border-radius: 999px;
  background: var(--ig-bg);
  border: 1px solid var(--ig-border);
}

.emails-recipient-tab {
  position: relative;
  cursor: pointer;
}

.emails-recipient-tab input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.emails-recipient-tab span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0 .85rem;
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--ig-muted);
  transition: background .2s, color .2s, box-shadow .2s;
}

.emails-recipient-tab.is-active span,
.emails-recipient-tab input:checked + span {
  background: #fff;
  color: var(--ig-blue);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
  font-weight: 600;
}

.emails-recipient-panel {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.emails-lead-picker {
  display: grid;
  grid-template-columns: minmax(11rem, 34%) minmax(0, 1fr);
  gap: .75rem;
  align-items: end;
}

.emails-recipient-preview {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  padding: .55rem .75rem;
  border-radius: 10px;
  background: rgba(0, 149, 246, .08);
  border: 1px solid rgba(0, 149, 246, .16);
}

.emails-recipient-preview-label {
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ig-blue);
}

.emails-recipient-preview strong {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--ig-text);
}

.emails-field-editor {
  margin-top: .85rem;
}

.emails-editor {
  min-height: 240px;
  background: var(--ig-surface);
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.emails-editor .ql-toolbar.ql-snow {
  border: 1.5px solid var(--ig-border);
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  background: var(--ig-bg);
}

.emails-editor .ql-container.ql-snow {
  border: 1.5px solid var(--ig-border);
  border-radius: 0 0 10px 10px;
  font-family: inherit;
  font-size: .9375rem;
}

.emails-compose-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ig-border);
}

.emails-compose-check {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .8125rem;
  color: var(--ig-muted);
  cursor: pointer;
}

.emails-send-btn {
  min-width: 11rem;
  min-height: 2.75rem;
  padding: .75rem 1.35rem;
  font-size: .9375rem;
  font-weight: 600;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 149, 246, .28);
}

.emails-send-btn:hover:not(:disabled) {
  box-shadow: 0 6px 18px rgba(0, 149, 246, .34);
  transform: translateY(-1px);
}

.emails-send-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
  box-shadow: none;
}

.emails-side-stats {
  margin-bottom: .85rem;
}

.emails-side-card {
  padding: 1rem 1.1rem;
}

.emails-side-card h3 {
  margin: 0 0 .65rem;
  font-size: .875rem;
}

.emails-side-card ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: .78rem;
  color: var(--ig-muted);
  line-height: 1.65;
}

.emails-side-note {
  margin: .75rem 0 0;
  font-size: .72rem;
  color: var(--ig-muted);
  line-height: 1.45;
}

.emails-history-card {
  padding: 0;
  overflow: hidden;
}

.emails-history-head {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--ig-border);
}

.emails-history-head h2 {
  margin: 0;
  font-size: 1rem;
}

.emails-history-empty {
  padding: 1.25rem;
  margin: 0;
  font-size: .85rem;
  color: var(--ig-muted);
}

@media (max-width: 960px) {
  .emails-layout {
    grid-template-columns: 1fr;
  }

  .emails-compose-grid,
  .emails-lead-picker {
    grid-template-columns: 1fr;
  }

  .emails-compose-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .emails-send-btn {
    width: 100%;
  }
}

.lead-modal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
  flex-shrink: 0;
  padding: .85rem 1.25rem 1.25rem;
  border-top: 1px solid var(--ig-border);
  background: var(--ig-bg);
  border-radius: 0 0 16px 16px;
}

.lead-modal-footer form {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

body.lead-modal-open {
  overflow: hidden;
}

.leads-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .75rem 1rem 1rem;
  border-top: 1px solid var(--ig-border);
  background: var(--ig-bg);
}

.leads-pagination-info {
  font-size: .8125rem;
  color: var(--ig-muted);
}

.leads-pagination-info.solo {
  padding: .75rem 1rem 1rem;
  margin: 0;
  border-top: 1px solid var(--ig-border);
  background: var(--ig-bg);
}

.leads-pagination-links {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  align-items: center;
}

.leads-page-num,
.leads-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: .35rem .55rem;
  border-radius: 8px;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--ig-muted);
  border: 1px solid var(--ig-border);
  background: var(--ig-surface);
}

.leads-page-num:hover,
.leads-page-btn:hover {
  color: var(--ig-blue);
  border-color: rgba(0, 149, 246, .35);
}

.leads-page-num.active {
  color: #fff;
  background: var(--ig-blue);
  border-color: var(--ig-blue);
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .leads-list-head {
    display: none;
  }

  .lead-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "date date"
      "name name"
      "source status";
    gap: .35rem .85rem;
    padding: .85rem 1rem;
  }

  .lead-date-col { grid-area: date; }
  .lead-main { grid-area: name; }
  .lead-source-col { grid-area: source; justify-self: start; }
  .lead-status-col { grid-area: status; justify-self: end; }

  .lead-detail-grid {
    grid-template-columns: 1fr;
  }
}

.admin-muted {
  color: var(--ig-muted);
  font-size: .8125rem;
}

.admin-back {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: .8125rem;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: .85em;
  background: var(--ig-bg);
  padding: .12rem .35rem;
  border-radius: 4px;
  border: 1px solid var(--ig-border);
}

pre {
  background: var(--ig-bg);
  border: 1px solid var(--ig-border);
  border-radius: 10px;
}

.admin-form-label {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  color: var(--ig-text);
  margin-bottom: .35rem;
}

.admin-form-label-muted {
  display: block;
  font-size: .75rem;
  color: var(--ig-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: .35rem;
}

/* ——— Page connexion ——— */
body.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  line-height: 1.5;
  background: var(--ig-bg);
  background-image:
    radial-gradient(ellipse 90% 60% at 50% -15%, rgba(0, 149, 246, .12), transparent 55%),
    radial-gradient(ellipse 50% 45% at 100% 100%, rgba(131, 58, 180, .08), transparent),
    radial-gradient(ellipse 40% 35% at 0% 90%, rgba(225, 48, 108, .06), transparent);
}

.login-shell {
  width: 100%;
  max-width: 400px;
}

.login-card {
  background: var(--ig-surface);
  border: 1px solid var(--ig-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, .04),
    0 8px 32px rgba(0, 0, 0, .06);
}

.login-card-accent {
  height: 4px;
  background: var(--ig-gradient);
}

.login-card-inner {
  padding: 2rem 1.75rem 1.5rem;
}

.login-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.login-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.login-brand .login-logo,
.login-brand .logo {
  display: inline-flex;
  max-width: 140px;
}

.login-brand .logo-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.login-label {
  display: inline-block;
  font-size: .6875rem;
  color: var(--ig-blue);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: .5rem;
  padding: .22rem .55rem;
  background: rgba(0, 149, 246, .08);
  border-radius: 999px;
}

.login-card h1 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--ig-text);
  margin-bottom: .35rem;
}

.login-sub {
  font-size: .875rem;
  color: var(--ig-muted);
  margin: 0;
  line-height: 1.45;
}

.login-err {
  background: rgba(237, 73, 86, .08);
  color: var(--ig-error);
  padding: .75rem .875rem;
  border-radius: 10px;
  font-size: .8125rem;
  margin-bottom: 1.25rem;
  line-height: 1.45;
  border: 1px solid rgba(237, 73, 86, .15);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.login-field {
  margin-bottom: 1.1rem;
}

.login-field label {
  display: block;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--ig-text);
  margin-bottom: .4rem;
}

.login-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.login-input-icon {
  position: absolute;
  left: .875rem;
  z-index: 1;
  font-size: .875rem;
  font-weight: 600;
  color: var(--ig-muted);
  pointer-events: none;
  line-height: 1;
}

.login-input-icon-lock {
  width: 14px;
  height: 14px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
}

.login-field input {
  box-sizing: border-box;
  width: 100%;
  background: var(--ig-bg);
  border: 1px solid var(--ig-border);
  border-radius: 10px;
  padding: .75rem .875rem .75rem 2.5rem;
  color: var(--ig-text);
  font-family: inherit;
  font-size: .9375rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.login-field input::placeholder {
  color: #b0b0b0;
}

.login-field input:hover {
  border-color: #b0b0b0;
  background: #fff;
}

.login-field input:focus {
  border-color: var(--ig-blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 149, 246, .14);
}

.login-submit {
  box-sizing: border-box;
  width: 100%;
  margin-top: .35rem;
  padding: .875rem 1rem;
  background: var(--ig-blue);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: .9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 14px rgba(0, 149, 246, .28);
}

.login-submit:hover:not(:disabled) {
  background: var(--ig-blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 149, 246, .35);
}

.login-submit:active:not(:disabled) {
  transform: translateY(0);
}

.login-submit:disabled {
  opacity: .5;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.login-foot {
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--ig-border);
  text-align: center;
  font-size: .8125rem;
}

.login-foot a {
  color: var(--ig-muted);
  text-decoration: none;
  transition: color .15s;
}

.login-foot a:hover {
  color: var(--ig-blue);
}

.login-secure {
  margin: 1rem 0 0;
  text-align: center;
  font-size: .6875rem;
  color: #b0b0b0;
  letter-spacing: .02em;
}

@media (max-width: 900px) {
  .admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-100%);
    transition: transform .22s ease;
    box-shadow: 4px 0 24px rgba(0, 0, 0, .12);
  }

  .admin-sidebar.is-open {
    transform: translateX(0);
  }

  .admin-sidebar-backdrop {
    display: block;
  }

  .admin-sidebar-backdrop[hidden] {
    display: none;
  }

  body.admin-sidebar-open {
    overflow: hidden;
  }

  .admin-main {
    max-width: 100vw;
    padding: 1rem 1rem 2rem;
  }

  .admin-sidebar-toggle {
    display: flex;
  }
}

@media (max-width: 768px) {
  .hide-mobile {
    display: none;
  }

  table {
    font-size: .8125rem;
  }

  th,
  td {
    padding: .65rem .75rem;
  }
}

/* ——— Dashboard prospection ——— */
.prosp-guide {
  margin-bottom: 1rem;
  overflow: hidden;
}

.prosp-guide-summary {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: 1rem 1.15rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.prosp-guide-summary::-webkit-details-marker {
  display: none;
}

.prosp-guide-summary-icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 149, 246, .1);
  color: var(--ig-blue);
  font-size: 1rem;
  font-weight: 700;
}

.prosp-guide-summary-text {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}

.prosp-guide-summary-text strong {
  font-size: .9375rem;
  color: var(--ig-text);
}

.prosp-guide-body {
  padding: 0 1.15rem 1.15rem;
  border-top: 1px solid var(--ig-border);
}

.prosp-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
  padding-top: 1rem;
}

.prosp-guide-block h3 {
  font-size: .8125rem;
  font-weight: 600;
  margin: 0 0 .5rem;
  color: var(--ig-text);
}

.prosp-guide-block p {
  margin: 0 0 .65rem;
  font-size: .8125rem;
  line-height: 1.55;
  color: var(--ig-muted);
}

.prosp-guide-block p:last-child {
  margin-bottom: 0;
}

.prosp-guide-tip {
  padding: .55rem .7rem;
  border-radius: 8px;
  background: rgba(0, 149, 246, .06);
  border: 1px solid rgba(0, 149, 246, .12);
  color: var(--ig-text) !important;
}

.prosp-guide-list,
.prosp-guide-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .8125rem;
  line-height: 1.5;
  color: var(--ig-muted);
}

.prosp-guide-list li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: .45rem;
}

.prosp-guide-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ig-blue);
}

.prosp-guide-steps li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  margin-bottom: .55rem;
  color: var(--ig-muted);
}

.prosp-guide-step-num {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ig-bg);
  border: 1px solid var(--ig-border);
  font-size: .6875rem;
  font-weight: 700;
  color: var(--ig-blue);
}

.prosp-guide-workflow {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--ig-border);
}

.prosp-guide-workflow h3 {
  font-size: .8125rem;
  font-weight: 600;
  margin: 0 0 .65rem;
  color: var(--ig-text);
}

.prosp-guide-workflow-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .65rem;
}

.prosp-guide-workflow-item {
  padding: .65rem .75rem;
  border-radius: 10px;
  background: var(--ig-bg);
  border: 1px solid var(--ig-border);
}

.prosp-guide-workflow-time {
  display: block;
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ig-blue);
  margin-bottom: .35rem;
}

.prosp-guide-workflow-item p {
  margin: 0;
  font-size: .75rem;
  line-height: 1.45;
  color: var(--ig-muted);
}

.prosp-card--planned {
  opacity: .92;
  border-style: dashed;
}

.prosp-planned-note {
  margin: 0;
  padding: .45rem .55rem;
  font-size: .75rem;
  line-height: 1.4;
  text-align: center;
  color: var(--ig-muted);
  background: var(--ig-bg);
  border-radius: 8px;
}

.prosp-toolbar {
  padding: 1rem 1.15rem;
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.prosp-toolbar-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1rem;
}

.prosp-toolbar-week {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  min-width: 200px;
}

.prosp-toolbar-week strong {
  font-size: .9375rem;
  color: var(--ig-text);
}

.prosp-stats {
  margin-bottom: 1.25rem;
}

.prosp-stats--phone {
  margin-top: -.35rem;
}

.prosp-stat--late strong {
  color: var(--ig-error);
}

.prosp-stat--today strong {
  color: var(--ig-blue);
}

.prosp-stat--rappel-1 strong {
  color: #0077c8;
}

.prosp-stat--rappel-2 strong {
  color: #c07a00;
}

.prosp-stat--rappel-3 strong {
  color: #c62828;
}

.prosp-stat--injoignable strong {
  color: #525252;
}

.prosp-section {
  margin-bottom: 1.5rem;
}

.prosp-section-head {
  margin-bottom: .75rem;
}

.prosp-section-head h2 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 .2rem;
  color: var(--ig-text);
}

.prosp-section--overdue .prosp-section-head h2 {
  color: var(--ig-error);
}

.prosp-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: .85rem;
}

.prosp-week-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -.25rem;
  padding: .15rem .25rem .65rem;
}

.prosp-week-grid {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  min-width: min-content;
}

.prosp-day-column {
  flex: 0 0 292px;
  width: 292px;
  background: var(--ig-surface);
  border: 1px solid var(--ig-border);
  border-radius: 14px;
  min-height: 120px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .03);
}

.prosp-day-column.is-today {
  border-color: rgba(0, 149, 246, .45);
  box-shadow: 0 0 0 1px rgba(0, 149, 246, .12);
}

.prosp-day-column.is-past {
  opacity: .88;
}

.prosp-day-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .35rem .5rem;
  padding: .65rem .75rem;
  background: var(--ig-bg);
  border-bottom: 1px solid var(--ig-border);
}

.prosp-day-column.is-today .prosp-day-head {
  background: rgba(0, 149, 246, .06);
}

.prosp-day-name {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--ig-text);
}

.prosp-day-date {
  font-size: .75rem;
  color: var(--ig-muted);
}

.prosp-day-count {
  margin-left: auto;
  font-size: .6875rem;
  font-weight: 600;
  padding: .15rem .45rem;
  border-radius: 999px;
  background: var(--ig-surface);
  border: 1px solid var(--ig-border);
  color: var(--ig-muted);
}

.prosp-day-body {
  padding: .55rem;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.prosp-day-empty {
  margin: .65rem 0;
  text-align: center;
  font-size: .8125rem;
  color: var(--ig-muted);
}

.prosp-card {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  background: #fff;
  border: 1px solid var(--ig-border);
  border-radius: 12px;
  padding: .75rem;
  font-size: .8125rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}

.prosp-card-open {
  display: block;
  color: inherit;
  text-decoration: none;
  border-radius: 8px;
  margin: -.2rem;
  padding: .2rem;
  transition: background .15s;
}

.prosp-card-open:hover {
  background: rgba(0, 149, 246, .04);
}

.prosp-card-open:focus-visible {
  outline: 2px solid var(--ig-blue);
  outline-offset: 2px;
}

.prosp-card-open .prosp-card-title {
  color: var(--ig-text);
}

.prosp-card-open:hover .prosp-card-title {
  color: var(--ig-blue);
}

.prosp-card--overdue {
  border-color: rgba(237, 73, 86, .4);
  background: linear-gradient(180deg, rgba(237, 73, 86, .05), #fff 40%);
}

.prosp-card--today {
  border-color: rgba(0, 149, 246, .35);
  box-shadow: 0 0 0 1px rgba(0, 149, 246, .08);
}

.prosp-card-head {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
}

.prosp-card-action-badge {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: .95rem;
  background: var(--ig-bg);
  border: 1px solid var(--ig-border);
}

.prosp-card--appel .prosp-card-action-badge {
  background: rgba(88, 195, 34, .1);
  border-color: rgba(88, 195, 34, .2);
}

.prosp-card--email .prosp-card-action-badge {
  background: rgba(0, 149, 246, .1);
  border-color: rgba(0, 149, 246, .2);
}

.prosp-card-head-text {
  min-width: 0;
  flex: 1;
}

.prosp-card-title {
  margin: 0 0 .35rem;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ig-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prosp-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
}

.prosp-card-badges .status,
.prosp-card-badges .source-badge {
  font-size: .5625rem;
  padding: .18rem .4rem;
}

.prosp-card-progress {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.prosp-step-track {
  display: flex;
  align-items: center;
  gap: .35rem;
}

.prosp-step-track-icon {
  flex-shrink: 0;
  width: 1rem;
  font-size: .6875rem;
  line-height: 1;
  text-align: center;
  opacity: .75;
}

.prosp-step-pills {
  display: flex;
  flex: 1;
  gap: .2rem;
  min-width: 0;
}

.prosp-step-pill {
  flex: 1;
  min-width: 0;
  text-align: center;
  font-size: .5625rem;
  font-weight: 700;
  letter-spacing: .02em;
  padding: .3rem .15rem;
  border-radius: 6px;
  border: 1px solid var(--ig-border);
  background: var(--ig-bg);
  color: var(--ig-muted);
  line-height: 1.2;
}

.prosp-step-pill--done {
  background: rgba(61, 148, 24, .1);
  border-color: rgba(61, 148, 24, .22);
  color: #3d9418;
}

.prosp-step-pill--current {
  background: rgba(0, 149, 246, .12);
  border-color: rgba(0, 149, 246, .35);
  color: var(--ig-blue);
  box-shadow: 0 0 0 2px rgba(0, 149, 246, .12);
}

.prosp-step-pill--phone.prosp-step-pill--current {
  background: rgba(88, 195, 34, .12);
  border-color: rgba(88, 195, 34, .28);
  color: #3d9418;
  box-shadow: 0 0 0 2px rgba(88, 195, 34, .1);
}

.prosp-step-pill--lost {
  background: rgba(115, 115, 115, .12);
  border-color: rgba(115, 115, 115, .25);
  color: #525252;
  font-weight: 800;
}

.prosp-action-pill {
  display: inline-block;
  font-size: .5625rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .18rem .45rem;
  border-radius: 999px;
  vertical-align: middle;
}

.prosp-action-pill--appel {
  background: rgba(88, 195, 34, .14);
  color: #3d9418;
}

.prosp-action-pill--email {
  background: rgba(0, 149, 246, .14);
  color: var(--ig-blue);
}

.prosp-card-due {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem .35rem;
  margin: 0;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--ig-muted);
}

.prosp-card-due.is-late {
  color: var(--ig-error);
}

.prosp-card-primary {
  margin-top: .1rem;
}

.prosp-card-primary form {
  margin: 0;
}

.prosp-primary-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: .55rem .75rem;
  border: none;
  border-radius: 999px;
  font: inherit;
  font-size: .8125rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
}

.prosp-primary-btn--call {
  background: #3d9418;
  color: #fff;
  box-shadow: 0 4px 12px rgba(61, 148, 24, .25);
}

.prosp-primary-btn--call:hover {
  background: #358015;
  transform: translateY(-1px);
  color: #fff;
}

.prosp-primary-btn--mail {
  background: var(--ig-blue);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 149, 246, .22);
}

.prosp-primary-btn--mail:hover {
  background: var(--ig-blue-hover);
  transform: translateY(-1px);
}

.prosp-primary-btn--ghost {
  background: var(--ig-bg);
  color: var(--ig-text);
  border: 1px solid var(--ig-border);
  box-shadow: none;
}

.prosp-primary-btn--ghost:hover {
  border-color: rgba(0, 149, 246, .35);
  color: var(--ig-blue);
  transform: none;
}

.prosp-card-footer {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  padding-top: .5rem;
  border-top: 1px solid var(--ig-border);
}

.prosp-footer-tel {
  display: flex;
  align-items: center;
  gap: .35rem;
  min-width: 0;
}

.prosp-footer-tel-label {
  flex-shrink: 0;
  width: 1.35rem;
  font-size: .5625rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ig-muted);
}

.prosp-footer-tel-btns {
  display: flex;
  flex: 1;
  gap: .2rem;
  min-width: 0;
}

.prosp-tel-pill {
  flex: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.65rem;
  padding: .2rem .15rem;
  border: 1px solid var(--ig-border);
  border-radius: 999px;
  background: var(--ig-surface);
  font: inherit;
  font-size: .5625rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .12s, background .15s;
}

.prosp-tel-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .06);
}

.prosp-tel-pill.is-active {
  box-shadow: 0 0 0 2px rgba(0, 149, 246, .18);
  font-weight: 800;
}

.prosp-tel-pill.status-injoignable.is-active {
  box-shadow: 0 0 0 2px rgba(115, 115, 115, .2);
}

.prosp-footer-actions {
  display: flex;
  align-items: center;
  gap: .3rem;
}

.prosp-footer-form {
  margin: 0;
}

.prosp-footer-form--grow {
  flex: 1;
  min-width: 0;
}

.prosp-footer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.75rem;
  padding: .3rem .55rem;
  border: 1px solid var(--ig-border);
  border-radius: 8px;
  background: var(--ig-surface);
  font: inherit;
  font-size: .6875rem;
  font-weight: 600;
  color: var(--ig-muted);
  cursor: pointer;
  text-decoration: none;
  transition: color .15s, border-color .15s, background .15s;
  width: 100%;
}

.prosp-footer-btn--done {
  color: #3d9418;
  border-color: rgba(61, 148, 24, .22);
  background: rgba(61, 148, 24, .06);
}

.prosp-footer-btn--done:hover {
  color: #358015;
  border-color: rgba(61, 148, 24, .35);
  background: rgba(61, 148, 24, .1);
}

.prosp-footer-btn--icon {
  flex-shrink: 0;
  width: 1.75rem;
  min-width: 1.75rem;
  padding: .3rem;
  font-size: .8125rem;
  line-height: 1;
}

.prosp-footer-btn:hover {
  color: var(--ig-text);
  border-color: #c7c7c7;
  background: var(--ig-bg);
}

.prosp-footer-btn--link {
  flex-shrink: 0;
  width: 1.75rem;
  min-width: 1.75rem;
  padding: .3rem;
  color: var(--ig-blue);
  font-size: .875rem;
  line-height: 1;
}

.prosp-snooze {
  position: relative;
  flex-shrink: 0;
}

.prosp-snooze summary {
  list-style: none;
}

.prosp-snooze summary::-webkit-details-marker {
  display: none;
}

.prosp-snooze-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + .35rem);
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
  padding: .55rem;
  min-width: 12rem;
  background: var(--ig-surface);
  border: 1px solid var(--ig-border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}

.prosp-snooze-label {
  font-size: .6875rem;
  font-weight: 600;
  color: var(--ig-muted);
  width: 100%;
}

.prosp-snooze-input {
  flex: 1;
  min-width: 0;
  padding: .35rem .45rem !important;
  font-size: .75rem !important;
}

.prosp-weekend-note {
  margin-top: 1rem;
  text-align: center;
  font-size: .8125rem;
}

@media (max-width: 1100px) {
  .prosp-guide-grid {
    grid-template-columns: 1fr;
  }

  .prosp-guide-workflow-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prosp-day-column {
    flex-basis: 272px;
    width: 272px;
  }
}

@media (max-width: 640px) {
  .prosp-guide-workflow-steps {
    grid-template-columns: 1fr;
  }

  .prosp-day-column {
    flex-basis: min(100%, 320px);
    width: min(100%, 320px);
  }

  .prosp-toolbar-nav {
    width: 100%;
    justify-content: space-between;
  }
}

/* ——— Offre de prix ——— */
.offer-page {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.offer-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 1rem 1.25rem;
  border-color: var(--ig-border);
}

.offer-topbar-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.offer-topbar-logo {
  display: block;
  width: auto;
  height: 40px;
  object-fit: contain;
}

.offer-topbar-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -.02em;
}

.offer-topbar-sub {
  margin: .15rem 0 0;
  font-size: .8125rem;
  color: var(--ig-muted);
}

.offer-topbar-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.offer-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .4rem .75rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--ig-muted);
  background: var(--ig-bg);
  border: 1px solid var(--ig-border);
}

.offer-pill strong {
  color: var(--ig-text);
  font-weight: 700;
}

.offer-pill--ok {
  color: #3d9418;
  border-color: rgba(88, 195, 34, .3);
  background: rgba(88, 195, 34, .08);
}

.offer-pill--warn {
  color: var(--ig-error);
  border-color: rgba(237, 73, 86, .28);
  background: rgba(237, 73, 86, .08);
}

.offer-smtp-banner {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  padding: .9rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(237, 73, 86, .22);
  background: rgba(237, 73, 86, .06);
  font-size: .8125rem;
  line-height: 1.5;
}

.offer-smtp-banner-icon {
  flex-shrink: 0;
  font-size: 1.1rem;
}

.offer-smtp-banner strong {
  display: block;
  margin-bottom: .2rem;
}

.offer-smtp-banner p {
  margin: 0;
  color: var(--ig-muted);
}

.offer-smtp-banner code {
  font-size: .75rem;
  padding: .1rem .35rem;
  border-radius: 4px;
  background: rgba(0, 0, 0, .05);
}

.offer-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
  gap: 1.25rem;
  align-items: start;
}

.offer-form-wrap {
  display: flex;
  flex-direction: column;
  gap: .85rem;
}

.offer-form {
  display: flex;
  flex-direction: column;
  gap: .85rem;
}

.offer-step-card {
  padding: 0;
  overflow: hidden;
}

.offer-step-card-head {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: 1rem 1.15rem;
  background: linear-gradient(180deg, var(--ig-bg) 0%, var(--ig-surface) 100%);
  border-bottom: 1px solid var(--ig-border);
}

.offer-step-num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  color: #fff;
  background: var(--ig-blue);
  box-shadow: 0 2px 8px rgba(0, 149, 246, .35);
}

.offer-step-card-title {
  margin: 0;
  font-size: .9375rem;
  font-weight: 700;
}

.offer-step-card-desc {
  margin: .15rem 0 0;
  font-size: .75rem;
  color: var(--ig-muted);
}

.offer-step-card-body {
  padding: 1rem 1.15rem 1.15rem;
}

.offer-search-wrap {
  position: relative;
  margin-bottom: .65rem;
}

.offer-search-icon {
  position: absolute;
  left: .85rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: .875rem;
  color: var(--ig-muted);
  pointer-events: none;
}

.offer-lead-search {
  width: 100%;
  padding-left: 2.25rem !important;
  border-radius: 10px;
}

.offer-lead-select {
  width: 100%;
  border-radius: 10px;
}

.offer-lead-preview {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-top: .85rem;
  padding: .75rem .9rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 149, 246, .2);
  background: rgba(0, 149, 246, .05);
}

.offer-lead-preview-avatar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  font-size: .9375rem;
  font-weight: 700;
  color: var(--ig-blue);
  background: rgba(0, 149, 246, .14);
}

.offer-lead-preview-body {
  flex: 1;
  min-width: 0;
}

.offer-lead-preview-name {
  margin: 0;
  font-size: .875rem;
  font-weight: 600;
}

.offer-lead-preview-email {
  margin: .1rem 0 .35rem;
  font-size: .75rem;
  color: var(--ig-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.offer-lead-preview-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  align-items: center;
}

.offer-lead-agence {
  font-size: .625rem;
  color: var(--ig-muted);
}

.offer-lead-preview-link {
  flex-shrink: 0;
  font-size: .75rem;
  font-weight: 600;
}

.offer-field label {
  display: block;
  margin-bottom: .35rem;
  font-size: .8125rem;
  font-weight: 600;
}

.offer-field input[type="text"],
.offer-field textarea {
  width: 100%;
  border-radius: 10px;
}

.offer-field textarea {
  min-height: 8rem;
  resize: vertical;
  line-height: 1.55;
}

.offer-char-count {
  margin: .35rem 0 0;
  font-size: .6875rem;
  color: var(--ig-muted);
  text-align: right;
}

.offer-amounts-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}

.offer-amount-box {
  padding: .85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--ig-border);
  background: var(--ig-bg);
}

.offer-amount-box label {
  display: block;
  margin-bottom: .45rem;
  font-size: .6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ig-muted);
}

.offer-money-input {
  display: flex;
  align-items: baseline;
  gap: .35rem;
}

.offer-money-input input {
  flex: 1;
  min-width: 0;
  font-size: 1.35rem;
  font-weight: 700;
  border: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.offer-money-input input:focus {
  outline: none;
  box-shadow: none;
}

.offer-money-suffix {
  font-size: .875rem;
  font-weight: 600;
  color: var(--ig-muted);
}

.offer-submit-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  background: linear-gradient(135deg, rgba(0, 149, 246, .06) 0%, var(--ig-surface) 100%);
  border-color: rgba(0, 149, 246, .18);
}

.offer-submit-note {
  margin: 0;
  max-width: 20rem;
  font-size: .75rem;
  color: var(--ig-muted);
  line-height: 1.45;
}

.offer-submit-btn {
  padding: .7rem 1.35rem;
  font-size: .9375rem;
  font-weight: 600;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 149, 246, .25);
}

.offer-submit-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  box-shadow: none;
}

.offer-aside {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  position: sticky;
  top: 1rem;
}

.offer-preview-card {
  padding: 0;
  overflow: hidden;
  transition: box-shadow .2s, border-color .2s;
}

.offer-preview-card.is-active {
  border-color: rgba(0, 149, 246, .25);
  box-shadow: 0 12px 32px rgba(0, 149, 246, .1);
}

.offer-preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .65rem 1rem;
  background: var(--ig-bg);
  border-bottom: 1px solid var(--ig-border);
}

.offer-preview-title {
  margin: 0;
  font-size: .8125rem;
  font-weight: 700;
}

.offer-preview-badge {
  padding: .15rem .45rem;
  border-radius: 999px;
  font-size: .625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #3d9418;
  background: rgba(88, 195, 34, .12);
}

.offer-pdf-mock {
  padding: .85rem;
  background: #e8e8e8;
  max-height: min(70vh, 640px);
  overflow: auto;
}

.offer-pdf-mock-sheet {
  padding: 1rem 1.1rem 1.15rem;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
  font-size: .6875rem;
  line-height: 1.45;
  color: #262626;
}

.offer-pdf-mock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .5rem;
  min-height: 2.75rem;
}

.offer-pdf-mock-logo {
  width: 48px;
  height: auto;
  flex-shrink: 0;
}

.offer-pdf-mock-header-text {
  flex: 1;
  min-width: 0;
  text-align: right;
}

.offer-pdf-mock-tagline {
  margin: 0;
  font-size: .5625rem;
  color: #737373;
  text-align: right;
}

.offer-pdf-mock-doc-title {
  margin: .15rem 0 0;
  font-size: .8125rem;
  font-weight: 700;
  color: #0095f6;
  text-align: right;
}

.offer-pdf-mock-doc-sub {
  margin: .1rem 0 0;
  font-size: .5625rem;
  color: #737373;
  text-align: right;
}

.offer-pdf-mock-rule {
  border: 0;
  border-top: 1px solid #dbdbdb;
  margin: .5rem 0 .65rem;
}

.offer-pdf-mock-meta {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .65rem;
}

.offer-pdf-mock-meta-right {
  text-align: right;
}

.offer-pdf-mock-label {
  margin: 0 0 .2rem;
  font-size: .5625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #737373;
}

.offer-pdf-mock-value {
  margin: 0 0 .5rem;
  font-size: .6875rem;
  font-weight: 600;
}

.offer-pdf-mock-objet {
  font-weight: 500;
  margin-bottom: .65rem;
}

.offer-pdf-mock-muted {
  margin: 0;
  font-size: .5625rem;
  color: #737373;
}

.offer-pdf-mock-proposition {
  margin: 0 0 .75rem;
  padding: .5rem .55rem;
  border-radius: 4px;
  background: #fafafa;
  border: 1px solid #efefef;
  font-size: .625rem;
  line-height: 1.5;
  white-space: pre-wrap;
  max-height: 6.5rem;
  overflow: auto;
  color: #363636;
}

.offer-pdf-mock-proposition.is-empty {
  color: #a8a8a8;
  font-style: italic;
}

.offer-pdf-mock-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .625rem;
}

.offer-pdf-mock-table th,
.offer-pdf-mock-table td {
  padding: .25rem 0;
  text-align: left;
  font-weight: 500;
}

.offer-pdf-mock-table td:last-child,
.offer-pdf-mock-table th:last-child {
  text-align: right;
  font-weight: 600;
}

.offer-pdf-mock-table-empty {
  text-align: center !important;
  color: #a8a8a8;
  font-style: italic;
  padding: .5rem 0 !important;
}

.offer-pdf-mock-ttc-row th,
.offer-pdf-mock-ttc-row td {
  padding-top: .45rem;
  border-top: 2px solid #0095f6;
  font-size: .75rem;
  font-weight: 700;
  color: #0095f6;
}

.offer-section-title {
  margin: 0;
  font-size: .9375rem;
  font-weight: 600;
}

.offer-empty {
  padding: 2rem 1rem;
  text-align: center;
}

.offer-empty-title {
  margin: 0 0 .35rem;
  font-weight: 600;
}

.offer-history-card {
  padding: 1rem 1.1rem;
}

.offer-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .75rem;
}

.offer-history-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 .35rem;
  border-radius: 999px;
  font-size: .625rem;
  font-weight: 700;
  color: var(--ig-blue);
  background: rgba(0, 149, 246, .1);
}

.offer-history-empty {
  margin: 0;
  font-size: .8125rem;
  color: var(--ig-muted);
  text-align: center;
  padding: .5rem 0;
}

.offer-history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  max-height: 280px;
  overflow: auto;
}

.offer-history-item {
  padding: .65rem .75rem;
  border-radius: 10px;
  border: 1px solid var(--ig-border);
  background: var(--ig-bg);
}

.offer-history-item-top {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .15rem;
}

.offer-history-name {
  font-size: .8125rem;
}

.offer-history-ttc {
  font-size: .75rem;
  font-weight: 700;
  color: var(--ig-blue);
}

.offer-history-objet {
  margin: 0 0 .35rem;
  font-size: .6875rem;
  line-height: 1.4;
  color: var(--ig-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.offer-history-foot {
  display: flex;
  justify-content: space-between;
  font-size: .625rem;
  color: var(--ig-muted);
}

.offer-history-foot a {
  font-weight: 600;
}

@media (max-width: 1100px) {
  .offer-workspace {
    grid-template-columns: 1fr;
  }

  .offer-aside {
    position: static;
  }

  .offer-pdf-mock {
    max-height: none;
  }
}

@media (max-width: 640px) {
  .offer-amounts-row {
    grid-template-columns: 1fr;
  }

  .offer-topbar-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: .65rem;
  }

  .offer-submit-card {
    flex-direction: column;
    align-items: stretch;
  }

  .offer-submit-btn {
    width: 100%;
    justify-content: center;
  }
}
