/* =========================================
   1) Base / Variables (SaaS sobre)
   Couleurs: blanc + bleu (accent)
========================================= */
:root {
  --bg: #f7f9fc;
  /* fond global */
  --card: #ffffff;
  /* cartes */
  --card-2: #ffffff;
  /* panneaux */
  --border: rgba(15, 23, 42, .10);
  --text: rgba(15, 23, 42, .92);
  --muted: rgba(15, 23, 42, .62);

  --accent: #2563eb;
  /* bleu (accent) */
  --accent-weak: rgba(37, 99, 235, .10);

  --radius: 14px;
  --radius-sm: 12px;

  --shadow: 0 10px 24px rgba(15, 23, 42, .08);
  --t: 220ms ease;

  --topbar-h: 64px;
  --sidebar-w: 260px;
}

/* Reset minimal */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: var(--bg);
  color: var(--text);
}

html {
  scroll-behavior: smooth;
}

/* Liens */
a {
  color: inherit;
  text-decoration: none;
}

.required {
  color: #ef4444;
}

/* =========================================
   2) Layout (Sidebar + Main)
========================================= */
.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}

/* =========================================
   3) Sidebar
========================================= */
.sidebar {
  border-right: 1px solid var(--border);
  padding: 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  background: #ffffff;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .35);
  z-index: 900;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background-color: var(--accent-weak);
  background-image: url("../images/logo/logo.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 70%;
  border: 1px solid rgba(37, 99, 235, .25);
}

.brand-text strong {
  display: block;
  font-size: 14px;
}

.brand-text span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.nav {
  margin-top: 16px;
  display: grid;
  gap: 6px;
}

.nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: rgba(15, 23, 42, .82);
  transition: background var(--t), border-color var(--t);
}

.nav a:hover {
  background: rgba(15, 23, 42, .03);
  border-color: var(--border);
}

.nav a.active {
  background: var(--accent-weak);
  border-color: rgba(37, 99, 235, .22);
  color: var(--text);
}

.nav .notif-count {
  margin-left: auto;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, .35);
  background: rgba(37, 99, 235, .12);
  color: rgba(15, 23, 42, .92);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ico {
  font-size: 18px;
  opacity: .9;
}

.sidebar-foot {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: rgba(15, 23, 42, .78);
  font-size: 13px;
  box-shadow: var(--shadow);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* =========================================
   4) Main / Topbar
========================================= */
.main {
  min-width: 0;
}

.topbar {
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10;
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  transition: background var(--t), transform var(--t);
}

.icon-btn.has-badge {
  position: relative;
}

.icon-btn .notif-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  border: 1px solid rgba(239, 68, 68, .45);
  background: rgba(239, 68, 68, .90);
  color: #fff;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-btn:hover {
  background: rgba(15, 23, 42, .03);
}

.icon-btn:active {
  transform: scale(.98);
}

/* Search */
.search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 520px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 12px;
  height: 40px;
  background: var(--card);
}

.search input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
}

.search input::placeholder {
  color: rgba(15, 23, 42, .40);
}

.s-ico {
  opacity: .65;
}

.search-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.search-summary strong {
  display: block;
  font-size: 18px;
  margin-top: 4px;
}

.search-counts {
  display: flex;
  align-items: center;
  gap: 18px;
  text-align: right;
}

.search-counts strong {
  font-size: 18px;
}

.search-loading {
  margin-top: 12px;
}

.search-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.result-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.result-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--card);
}

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

.result-main strong {
  display: block;
}

.result-meta {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.result-side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  text-align: right;
}

.result-price {
  font-weight: 700;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.topbar-form {
  margin: 0;
}

.user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--accent-weak);
  border: 1px solid rgba(37, 99, 235, .22);
  font-weight: 700;
  font-size: 13px;
  color: rgba(15, 23, 42, .92);
}

.user-text strong {
  display: block;
  font-size: 13px;
  line-height: 1.1;
}

.user-text span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.chevron {
  opacity: .7;
}

.user-menu {
  position: relative;
}

.user-trigger {
  cursor: pointer;
}

.user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 180px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 6px;
  display: none;
  z-index: 20;
}

.user-menu.is-open .user-dropdown {
  display: block;
}

.user-dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--text);
  background: transparent;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font-size: 13px;
  text-align: left;
}

.user-dropdown-item:hover {
  background: rgba(15, 23, 42, .05);
}

.user-dropdown-item.is-danger {
  color: #ef4444;
}

/* =========================================
   5) Content
========================================= */
.content {
  padding: 18px;
}

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.page-head h1 {
  margin: 0;
  font-size: 20px;
  letter-spacing: .2px;
}

.page-head p {
  margin: 6px 0 0 0;
  color: var(--muted);
  font-size: 14px;
}

.page-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  height: 40px;
  padding: 5px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background var(--t), transform var(--t), border-color var(--t);
  white-space: nowrap;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: .6;
  cursor: not-allowed;
  pointer-events: none;
}

.btn:hover {
  background: rgba(15, 23, 42, .03);
}

.btn:active {
  transform: scale(.99);
}

.btn-primary {
  background: var(--accent);
  border-color: rgba(37, 99, 235, .55);
  color: #ffffff;
  max-width: 100%;
}

.btn-primary:hover {
  filter: brightness(1.03);
  background-color: #ffffff;
  color: var(--accent);
  filter: brightness(1.03);
}

.btn-ghost {
  background: var(--card);
}

.plan-expired-lock {
  overflow: hidden;
}

/* =========================================
   6) KPI Cards (responsive)
========================================= */
.kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 14px;
  min-width: 0;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.label {
  color: var(--muted);
  font-size: 13px;
}

.mini {
  opacity: .8;
  font-size: 18px;
}

.value {
  margin-top: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .2px;
}

.hint {
  margin-top: 6px;
  color: rgba(15, 23, 42, .55);
  font-size: 12px;
}

.card-warn {
  border-color: rgba(37, 99, 235, .22);
  background: linear-gradient(180deg, rgba(37, 99, 235, .08), #ffffff);
}

/* =========================================
   7) Grid sections
========================================= */
.grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 12px;
  margin-top: 12px;
}

.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 14px;
  box-shadow: var(--shadow);
  min-width: 0;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.panel h2 {
  margin: 0;
  font-size: 15px;
}

.link {
  color: rgba(15, 23, 42, .72);
  font-size: 13px;
}

.link:hover {
  color: var(--accent);
}

/* Table simple */
.table {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
}

.row {
  display: grid;
  grid-template-columns: 1fr 90px 90px;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.row:last-child {
  border-bottom: 0;
}

.row.head {
  color: rgba(15, 23, 42, .55);
  font-size: 12px;
  background: rgba(15, 23, 42, .02);
}

.right {
  text-align: right;
}

.prod {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  min-width: 34px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, .25);
  background: rgba(37, 99, 235, .10);
  color: rgba(15, 23, 42, .88);
  font-size: 12px;
}

/* Chart placeholder */
.chart {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: #ffffff;
}

.line-chart {
  height: 240px;
  width: 100%;
}

.bars {
  height: 180px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  align-items: end;
}

.bars span {
  display: block;
  width: 100%;
  border-radius: 10px;
  background: rgba(15, 23, 42, .06);
  border: 1px solid rgba(15, 23, 42, .08);
}

.bars span:nth-child(2),
.bars span:nth-child(4),
.bars span:nth-child(6) {
  background: rgba(37, 99, 235, .20);
  border-color: rgba(37, 99, 235, .22);
}

.chart-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  gap: 10px;
}

.muted {
  color: var(--muted);
  font-size: 12px;
}

/* Segmented control */
.seg {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
}

.seg-btn {
  border: 0;
  background: transparent;
  color: rgba(15, 23, 42, .70);
  padding: 8px 10px;
  cursor: pointer;
  font-size: 12px;
}

.seg-btn.is-active {
  background: rgba(37, 99, 235, .10);
  color: var(--text);
}

/* =========================================
   8) Transition douce (fade)
========================================= */
.fade {
  animation: fadeIn 220ms ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================
   9) Responsive
========================================= */
.bottom-nav {
  display: none;
}

/* Tablet */
@media (max-width: 1024px) {
  :root {
    --sidebar-w: 220px;
  }

  .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

/* Mobile */
@media (max-width: 768px) {
  .app {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: min(var(--sidebar-w), 86vw);
    z-index: 1001;
    box-shadow: var(--shadow);
  }

  body.sidebar-open .sidebar {
    display: block;
  }

  body.sidebar-open .sidebar-backdrop {
    display: block;
  }

  .topbar {
    padding: 0 12px;
  }

  .search {
    max-width: none;
  }

  .user-text {
    display: none;
  }

  .content {
    padding-bottom: 88px;
  }

  .kpis {
    grid-template-columns: 1fr;
  }

  .row {
    grid-template-columns: 1fr 70px 70px;
  }

  .tbl.is-responsive {
    display: block;
  }

  .tbl.is-responsive thead {
    display: none;
  }

  .tbl.is-responsive tbody,
  .tbl.is-responsive tr,
  .tbl.is-responsive td {
    display: block;
    width: 100%;
  }

  .tbl.is-responsive tr {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
  }

  .tbl.is-responsive tr:last-child {
    border-bottom: 0;
  }

  .tbl.is-responsive td {
    padding: 6px 0;
    border-bottom: 0;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    text-align: right;
  }

  .tbl.is-responsive td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--muted);
    font-size: 12px;
    text-align: left;
  }

  .tbl.is-responsive td:last-child {
    padding-bottom: 0;
  }

  /* Bottom nav */
  .bottom-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 10px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: var(--shadow);
    z-index: 20;
  }

  .bn {
    display: grid;
    place-items: center;
    gap: 4px;
    padding: 8px 6px;
    border-radius: 12px;
    color: rgba(15, 23, 42, .70);
    font-size: 11px;
  }

  .bn .iconify {
    font-size: 18px;
  }

  .bn.active {
    background: rgba(37, 99, 235, .10);
    color: var(--text);
    border: 1px solid rgba(37, 99, 235, .18);
  }
}









/* =========================================
   PRODUITS / STOCK – styles communs
========================================= */

/* Barre outils (recherche + filtres + actions) */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}

.toolbar-left {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.input,
.select {
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 0 12px;
  color: var(--text);
  outline: none;
  font-size: 14px;
}

.select {
  padding-right: 10px;
}

.input::placeholder {
  color: rgba(15, 23, 42, .40);
}

.table-wrap {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.tbl th,
.tbl td {
  padding: 12px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}

.tbl th {
  font-size: 12px;
  color: rgba(15, 23, 42, .55);
  background: rgba(15, 23, 42, .02);
  font-weight: 700;
}

.tbl tr:last-child td {
  border-bottom: 0;
}

.t-right {
  text-align: right;
}

.t-center {
  text-align: center;
}

/* Badges état stock */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, .02);
  font-size: 12px;
}

.badge-pill.low {
  border-color: rgba(37, 99, 235, .22);
  background: rgba(37, 99, 235, .08);
}

.badge-pill.ok {
  border-color: rgba(15, 23, 42, .12);
}

.actions {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.actions-products {
  justify-content: flex-end;
}

.btn-xs {
  height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 12px;
}

/* Grille formulaire */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.field-full {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  font-size: 12px;
  color: rgba(15, 23, 42, .65);
  margin-bottom: 6px;
}

.field .input,
.field .select {
  width: 100%;
}

.help {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

/* Sections (détail produit, historique) */
.section {
  margin-top: 12px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.section-head h2 {
  margin: 0;
  font-size: 15px;
}

/* Settings: role edit */
.role-edit__form-grid {
  align-items: start;
}

.role-edit__section-head {
  margin-top: 20px;
}

.role-edit__permissions-grid {
  margin-top: 10px;
}

.role-edit__permission-group {
  display: grid;
  gap: 10px;
}

.role-edit__group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.role-edit__group-header label {
  margin-bottom: 0;
  font-weight: 600;
  color: var(--text);
}

.role-edit__permissions {
  padding: 14px;
  display: grid;
  gap: 12px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.role-edit__permission-item {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.role-edit__permission-item input[type="checkbox"] {
  margin-top: 2px;
}

.role-edit__permission-item strong {
  display: block;
  font-size: 13px;
  color: var(--text);
}

.role-edit__permission-body {
  display: grid;
  gap: 4px;
}

.role-edit__permission-item .muted {
  font-size: 12px;
}

.role-form__form-grid {
  align-items: start;
}

.role-form__section-head {
  margin-top: 20px;
}

.role-form__permissions-grid {
  margin-top: 10px;
}

.role-form__permission-group {
  display: grid;
  gap: 10px;
}

.role-form__group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.role-form__group-header label {
  margin-bottom: 0;
  font-weight: 600;
  color: var(--text);
}

.role-form__permissions {
  padding: 14px;
  display: grid;
  gap: 12px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.role-form__permission-item {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.role-form__permission-item input[type="checkbox"] {
  margin-top: 2px;
}

.role-form__permission-item strong {
  display: block;
  font-size: 13px;
  color: var(--text);
}

.role-form__permission-body {
  display: grid;
  gap: 4px;
}

.role-form__permission-item .muted {
  font-size: 12px;
}

@media (max-width: 900px) {
  .role-edit__permissions {
    padding: 10px;
  }

  .role-form__permissions {
    padding: 10px;
  }
}

/* Layout detail produit */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

/* Responsive */
@media (max-width: 1024px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  .btn {
    max-width: 100%;
  }

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

  .page-actions {
    width: 100%;
  }

  .page-actions .btn,
  .page-actions a.btn {
    width: 100%;
    justify-content: center;
  }

  .tbl-mobile-cards {
    border-collapse: separate;
    border-spacing: 0;
    min-width: 0;
  }

  .tbl-mobile-cards thead {
    display: none;
  }

  .tbl-mobile-cards,
  .tbl-mobile-cards tbody,
  .tbl-mobile-cards tr,
  .tbl-mobile-cards td {
    display: block;
    width: 100%;
  }

  .tbl-mobile-cards tr {
    padding: 12px;
    border-bottom: 1px solid var(--border);
  }

  .tbl-mobile-cards tr:last-child {
    border-bottom: 0;
  }

  .tbl-mobile-cards td {
    border-bottom: 0;
    padding: 6px 0;
    text-align: left;
  }

  .tbl-mobile-cards td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    color: var(--muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .02em;
  }

  .tbl-mobile-cards .product-name {
    align-items: flex-start;
  }

  .tbl-mobile-cards .actions-products {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 8px;
  }

  .tbl-mobile-cards .actions-products .btn,
  .tbl-mobile-cards .actions-products form {
    width: 100%;
  }

  .tbl-mobile-cards .actions-products .btn {
    justify-content: center;
  }

  .tbl-mobile-cards .t-right,
  .tbl-mobile-cards .t-center {
    text-align: left;
  }

  .history-filters .filters-left,
  .history-filters .filters-right {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .history-filters .select,
  .history-filters .input,
  .history-filters .btn {
    width: 100%;
    min-width: 0;
  }

  .history-table.tbl-mobile-cards td,
  .history-table.tbl-mobile-cards td * {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .history-table.tbl-mobile-cards td[data-label="Action"] .badge {
    display: inline-flex;
    max-width: 100%;
  }

  .history-table.tbl-mobile-cards td[data-label="Description"] > .muted {
    margin-top: 6px;
  }
}






/* =========================================
   POS (Ventes) — tactile / responsive
========================================= */

/* Zone POS */
.pos {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  /* catalogue / panier */
  gap: 12px;
  margin-top: 12px;
}

/* Sur mobile, on passe en 1 colonne + tabs */
@media (max-width: 900px) {
  .pos {
    grid-template-columns: 1fr;
  }
}

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

/* POS header (résumé + actions) */
.pos-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}

.pos-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
  font-size: 13px;
  color: rgba(15, 23, 42, .78);
}

.chip b {
  color: var(--text);
}

.chip .iconify {
  opacity: .75;
}

/* Tabs mobile */
.pos-tabs {
  display: none;
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.pos-tabs a {
  flex: 1;
  display: inline-flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  height: 44px;
  font-size: 13px;
  color: rgba(15, 23, 42, .75);
}

.pos-tabs a.active {
  background: rgba(37, 99, 235, .10);
  color: var(--text);
  border-right: 1px solid var(--border);
}

.pos-tabs .row {
  display: flex;
  padding: 0;
  border: 0;
}

@media (max-width: 900px) {
  .pos-tabs {
    display: block;
  }
}

/* Catalogue */
.catalog {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.catalog-top {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.catalog-top .filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

@media (max-width: 900px) {
  .catalog-top {
    flex-direction: column;
    align-items: stretch;
  }

  .catalog-top .filters {
    width: 100%;
  }

  .catalog-top .filters .input,
  .catalog-top .filters .select {
    flex: 1 1 220px;
    min-width: 200px;
  }
}

@media (max-width: 520px) {

  .catalog-top .filters .input,
  .catalog-top .filters .select {
    flex: 1 1 100%;
    min-width: 100%;
  }
}

.grid-products {
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  transition: opacity 180ms ease, transform 180ms ease;
}

@media (max-width: 1200px) {
  .grid-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .grid-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.pcard {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  padding: 12px;
  display: grid;
  gap: 8px;
  cursor: pointer;
  transition: transform var(--t), background var(--t), border-color var(--t);
  user-select: none;
}

.pcard:hover {
  background: rgba(15, 23, 42, .01);
  border-color: rgba(37, 99, 235, .20);
}

.pcard:active {
  transform: scale(.99);
}

.pcard .title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.pcard .title strong {
  font-size: 14px;
  line-height: 1.2;
}

.pcard .price {
  font-weight: 800;
  color: var(--text);
}

.pcard .meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: rgba(15, 23, 42, .60);
  font-size: 12px;
}

.pcard .stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dot-mini {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgb(62 180 0);
}

.dot-mini.low {
  background: rgb(224 0 0);
}

.grid-products.is-fading {
  opacity: 0;
  transform: translateY(6px);
}

.pos-pagination {
  padding: 0 12px 12px;
}

.pos-pagination .pager {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  background: rgba(15, 23, 42, .02);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 10px;
}

.pos-pagination .pager span {
  font-size: 12px;
  color: rgba(15, 23, 42, .72);
}

.table-pagination {
  margin: 16px 0 28px;
  display: grid;
  gap: 10px;
}

.table-pagination .pager {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .06);
}

.table-pagination .pager-pages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.table-pagination .pager-btn {
  border: 1px solid transparent;
  background: rgba(15, 23, 42, .04);
  color: inherit;
  border-radius: 10px;
  padding: 6px 12px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.table-pagination .pager-btn:hover:not(:disabled) {
  background: rgba(15, 23, 42, .10);
  box-shadow: 0 4px 10px rgba(15, 23, 42, .12);
  transform: translateY(-1px);
}

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

.table-pagination .pager-pages .pager-btn.is-active {
  background: var(--primary);
  color: #2563eb;
  box-shadow: 0 8px 16px rgb(37 99 235 / 39%);
}

.table-pagination .pager-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: rgba(15, 23, 42, .70);
}

.table-pagination .pager-meta label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.table-pagination select {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 10px;
  background: var(--card);
  font-size: 12px;
}

@media (max-width: 1024px) {
  .table-pagination .pager {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .table-pagination .pager-pages {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .table-pagination {
    margin: 12px 0 20px;
  }

  .table-pagination .pager {
    padding: 10px;
  }

  .table-pagination .pager-pages {
    order: 3;
    justify-content: center;
  }

  .table-pagination .pager-btn {
    width: 100%;
  }

  .table-pagination .pager-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .table-pagination .pager-pages {
    gap: 4px;
  }

  .table-pagination .pager-btn {
    font-size: 12px;
    padding: 6px 10px;
  }
}

/* Panier */
.cart {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  /* head / items / checkout */
  min-height: 520px;
}

@media (max-width: 900px) {
  .cart {
    min-height: 0;
  }
}

.cart-head {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.cart-head h2 {
  margin: 0;
  font-size: 15px;
}

.cart-items {
  padding: 12px;
  overflow: auto;
  display: grid;
  gap: 10px;
  max-height: clamp(240px, 40vh, 480px);
}

.citem {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
  background: #fff;
  display: grid;
  gap: 10px;
}

.crow {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.crow strong {
  font-size: 14px;
}

.qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.qty button {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  cursor: pointer;
}

.qty input {
  width: 54px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid var(--border);
  text-align: center;
  outline: none;
  background: #fff;
}

.cart-foot {
  padding: 12px;
  border-top: 1px solid var(--border);
  background: rgba(15, 23, 42, .01);
  display: grid;
  gap: 10px;
}

.total-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: rgba(15, 23, 42, .78);
  font-size: 13px;
}

.total-line b {
  color: var(--text);
  font-size: 14px;
}

.total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.total strong {
  font-size: 18px;
}

.checkout {
  display: grid;
  gap: 10px;
}

.checkout .row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 520px) {
  .checkout .row2 {
    grid-template-columns: 1fr;
  }
}

/* Zone mobile: masquer panneau selon onglet (via classe) */
.pos.is-cart-only .catalog {
  display: none;
}

.pos.is-products-only .cart {
  display: none;
}

@media (min-width: 901px) {

  .pos.is-cart-only .catalog,
  .pos.is-products-only .cart {
    display: block;
  }
}

/* Modal plan expiré */
.plan-expired-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 40;
  opacity: 0;
  transition: opacity 200ms ease;
}

.plan-expired-modal.is-open {
  display: flex;
  opacity: 1;
}

.plan-expired-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .65);
  backdrop-filter: blur(2px);
  animation: plan-expired-fade 200ms ease;
}

.plan-expired-modal__content {
  position: relative;
  width: min(860px, 94vw);
  max-height: 90vh;
  overflow: auto;
  background: var(--card);
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(15, 23, 42, .35);
  padding: 22px;
  display: grid;
  gap: 14px;
  animation: plan-expired-pop 220ms ease;
  will-change: transform, opacity;
}

.plan-expired-modal__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, .12);
  color: var(--accent);
  font-size: 28px;
}

.plan-expired-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.plan-expired-modal__plans {
  display: grid;
  gap: 12px;
}

.plan-expired-modal__plans .plan {
  margin-top: 0;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.plan-expired-modal__help {
  font-size: 13px;
}

@keyframes plan-expired-pop {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes plan-expired-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Modal encaissement */
.pos-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 30;
}

.pos-modal.is-open {
  display: flex;
}

.pos-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .45);
}

.pos-modal__content {
  position: relative;
  width: min(720px, 92vw);
  background: var(--card);
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(15, 23, 42, .25);
  padding: 18px;
  display: grid;
  gap: 16px;
  animation: pos-modal-in 180ms ease;
}

@media (max-width: 720px) {
  .pos-modal__content {
    width: 94vw;
    max-height: 92vh;
    overflow: auto;
    border-radius: 16px;
  }

  .pos-modal__actions {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 520px) {
  .pos-modal__form {
    grid-template-columns: 1fr;
  }

  .pos-modal__summary {
    grid-template-columns: 1fr;
  }
}

@keyframes pos-modal-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pos-modal__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.pos-modal__head h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.pos-modal__summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.summary-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  background: rgba(15, 23, 42, .02);
  display: grid;
  gap: 6px;
}

.pos-modal__form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.input-readonly {
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, .04);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  color: var(--text);
}

.pos-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Modal reçu */
.receipt-modal__content {
  width: min(560px, 94vw);
  max-height: 92vh;
  overflow: auto;
}

.receipt-modal__actions {
  flex-wrap: wrap;
}

.receipt-ticket {
  background: #fff;
  color: #0f172a;
  border: 1px dashed rgba(15, 23, 42, .2);
  border-radius: 16px;
  padding: 14px;
  display: grid;
  gap: 16px;
  font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  width: 67mm;
  max-width: 90%;
  margin: 0 auto;
}

.receipt-ticket__brand {
  display: grid;
  gap: 4px;
  text-align: center;
}

.receipt-ticket__logo {
  width: 36px;
  height: 36px;
  margin: 0 auto;
  display: block;
}

.receipt-ticket__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  font-size: 12px;
}

.receipt-ticket__meta span {
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: .08em;
}

.receipt-ticket__separator {
  border-top: 1px dashed rgba(15, 23, 42, .2);
}

.receipt-ticket__items {
  display: grid;
  gap: 8px;
  font-size: 11px;
}

.receipt-ticket__item {
  display: grid;
  grid-template-columns: 1.6fr .4fr .6fr .6fr;
  gap: 8px;
  align-items: center;
}

.receipt-ticket__head {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(15, 23, 42, .6);
}

.receipt-ticket__totals {
  display: grid;
  gap: 6px;
  font-size: 11px;
}

.receipt-ticket__totals div {
  display: flex;
  justify-content: space-between;
}

.receipt-ticket__total {
  font-size: 13px;
  font-weight: 700;
  padding-top: 6px;
  border-top: 1px solid rgba(15, 23, 42, .15);
}

.receipt-ticket__footer {
  display: grid;
  gap: 6px;
  text-align: center;
  font-size: 11px;
}

@media (max-width: 600px) {
  .receipt-ticket {
    padding: 16px;
  }

  .receipt-ticket__item {
    grid-template-columns: 1.2fr .4fr .6fr .6fr;
  }
}

/* =========================================
   Liste ventes — petit style état
========================================= */
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, .02);
  font-size: 12px;
}

.status.paid {
  border-color: rgba(37, 99, 235, .22);
  background: rgba(37, 99, 235, .10);
}

.status.cancel {
  opacity: .7;
}






/* =========================================
   RAPPORTS — styles communs
========================================= */

.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}

.filters-left {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.filters-right {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

@media (max-width: 1024px) {
  .kpi-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.kpi {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 14px;
  display: grid;
  gap: 10px;
}

.kpi .top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.kpi .top span {
  color: var(--muted);
  font-size: 13px;
}

.kpi .val {
  font-size: 20px;
  font-weight: 800;
}

.kpi .sub {
  font-size: 12px;
  color: rgba(15, 23, 42, .55);
}

.charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

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

.chart-box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 14px;
}

.chart-box h2 {
  margin: 0;
  font-size: 15px;
}

.chart-area {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  min-height: 280px;
  background: rgba(15, 23, 42, .02);
  padding: 12px;
  color: rgba(15, 23, 42, .55);
  font-size: 13px;
}

.chart-area > div {
  width: 100%;
}

/* mini “spark bars” (graphique simple sans JS) */
.spark {
  width: 100%;
  height: 220px;
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 6px;
  align-items: end;
  padding: 14px;
}

.spark span {
  display: block;
  width: 100%;
  border-radius: 10px;
  background: rgba(15, 23, 42, .08);
  border: 1px solid rgba(15, 23, 42, .10);
}

.spark span:nth-child(3n) {
  background: rgba(37, 99, 235, .18);
  border-color: rgba(37, 99, 235, .22);
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

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

.insight-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 14px;
  display: grid;
  gap: 12px;
}

.insight-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.insight-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(15, 23, 42, .02);
}

.advice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

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

.advice-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 14px;
  display: grid;
  gap: 10px;
  color: rgba(15, 23, 42, .75);
}

.advice-card .iconify {
  font-size: 20px;
  color: #f59e0b;
}

.badge-pill.badge-haute {
  background: rgba(239, 68, 68, .12);
  border-color: rgba(239, 68, 68, .24);
  color: #b91c1c;
}

.badge-pill.badge-moyenne {
  background: rgba(249, 115, 22, .12);
  border-color: rgba(249, 115, 22, .24);
  color: #c2410c;
}

.badge-pill.badge-basse {
  background: rgba(34, 197, 94, .12);
  border-color: rgba(34, 197, 94, .24);
  color: #15803d;
}

.note {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}

.alert {
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, .08);
  background: rgba(15, 23, 42, .03);
  font-size: 13px;
}

.alert.success {
  border-color: rgba(16, 185, 129, .4);
  background: rgba(16, 185, 129, .12);
  color: #047857;
}

.alert.danger {
  border-color: rgba(239, 68, 68, .35);
  background: rgba(239, 68, 68, .1);
  color: #b91c1c;
}

.alert.info {
  border-color: rgba(59, 130, 246, .35);
  background: rgba(59, 130, 246, .12);
  color: #1d4ed8;
}

/* Export cards */
.export-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

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

.export-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 16px;
  display: grid;
  gap: 10px;
}

.export-card h2 {
  margin: 0;
  font-size: 15px;
}

.export-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.hr {
  height: 1px;
  background: var(--border);
  margin: 6px 0;
}

/* alert badges (rupture / faible) */
.badge-alert {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, .25);
  background: rgba(37, 99, 235, .10);
  font-size: 12px;
}

.badge-alert.rupture {
  border-color: rgba(37, 99, 235, .35);
  background: rgba(37, 99, 235, .14);
  font-weight: 700;
}

/* plan usage meter */
.limit-meter {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 12px 0;
  box-shadow: var(--shadow-sm);
}
.limit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  margin-bottom: 8px;
}
.limit-track {
  background: rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}
.limit-bar {
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  height: 100%;
  width: 0;
  border-radius: 999px;
  transition: width 0.25s ease;
}
.limit-foot {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}
.pill-meta {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}







/* =========================================
   NOTIFICATIONS + SETTINGS — styles communs
========================================= */

/* Layout settings */
.settings {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 12px;
  margin-top: 12px;
}

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

.settings-nav {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 10px;
  height: fit-content;
}

.settings-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 12px;
  color: rgba(15, 23, 42, .78);
  border: 1px solid transparent;
  transition: background var(--t), border-color var(--t);
}

.settings-nav a:hover {
  background: rgba(15, 23, 42, .03);
  border-color: var(--border);
}

.settings-nav a.active {
  background: rgba(37, 99, 235, .10);
  border-color: rgba(37, 99, 235, .18);
  color: var(--text);
}

.settings-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 14px;
}

.settings-card h2 {
  margin: 0;
  font-size: 15px;
}

.settings-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

/* Form sections */
.form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-top: 12px;
}

/* Notification list */
.n-list {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.n-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 12px;
  display: grid;
  gap: 8px;
}

.n-item.is-unread {
  border-color: rgba(37, 99, 235, .32);
  background: rgba(37, 99, 235, .06);
}

.n-item.is-unread .n-title strong {
  color: rgba(15, 23, 42, .95);
}

.n-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.n-title {
  display: flex;
  gap: 10px;
  align-items: center;
}

.n-title strong {
  font-size: 14px;
}

.n-meta {
  color: rgba(15, 23, 42, .60);
  font-size: 12px;
}

.n-actions {
  display: inline-flex;
  gap: 8px;
}

.n-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, .18);
  background: rgba(37, 99, 235, .10);
  font-size: 12px;
}

.n-badge.stock {}

.n-badge.sales {}

.n-desc {
  color: rgba(15, 23, 42, .70);
  font-size: 13px;
  line-height: 1.4;
}

/* Billing */
.plan {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.plan-box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 14px;
}

.plan-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.plan-head h3 {
  margin: 0;
  font-size: 15px;
}

.price {
  font-weight: 900;
  color: var(--text);
}

.features {
  margin: 10px 0 0;
  padding-left: 18px;
  color: rgba(15, 23, 42, .75);
  font-size: 13px;
  line-height: 1.6;
}

.table-compact .tbl th,
.table-compact .tbl td {
  padding: 10px 12px;
}







/* =========================================
   PAGES SYSTÈME (404 / maintenance / accès refusé)
========================================= */

.sys {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 18px;
  position: relative;
  overflow: hidden;
}

/* fond doux + accent bleu */
.sys::before {
  content: "";
  position: absolute;
  inset: -60px;
  background:
    radial-gradient(600px 300px at 20% 20%, rgba(37, 99, 235, .18), transparent 60%),
    radial-gradient(600px 300px at 80% 10%, rgba(37, 99, 235, .10), transparent 60%),
    radial-gradient(700px 400px at 50% 90%, rgba(15, 23, 42, .06), transparent 60%);
  filter: blur(0px);
  z-index: 0;
}

.sys-card {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  padding: 18px;
}

.sys-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sys-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, .18);
  background: rgba(37, 99, 235, .10);
  font-size: 12px;
  color: rgba(15, 23, 42, .78);
}

.sys-ico {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(37, 99, 235, .18);
  background: rgba(37, 99, 235, .10);
}

.sys h1 {
  margin: 12px 0 0;
  font-size: 22px;
  letter-spacing: .2px;
}

.sys p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 14px;
}

.sys-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.sys-links {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(15, 23, 42, .72);
  font-size: 13px;
}

.sys-links a:hover {
  color: var(--accent);
}

.sys-foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: rgba(15, 23, 42, .60);
  font-size: 12px;
}

/* numéro gros (404 etc.) */
.sys-code {
  font-size: 54px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -1px;
  color: rgba(15, 23, 42, .10);
  user-select: none;
}

@media (max-width: 420px) {
  .sys-code {
    font-size: 44px;
  }

  .sys h1 {
    font-size: 20px;
  }
}







/* =========================================
   VENTE EDIT — zone “danger”
========================================= */

.danger {
  border: 1px solid rgba(37, 99, 235, .22);
  background: rgba(37, 99, 235, .06);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
}

.danger h3 {
  margin: 0;
  font-size: 14px;
}

.danger p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.btn-danger {
  border-color: rgba(37, 99, 235, .35);
  background: rgba(37, 99, 235, .12);
}

.btn-danger:hover {
  filter: brightness(1.02);
}











/* =========================================
   STOCKFLOW LANDING — DARK PREMIUM (inspiré)
========================================= */

.lp {
  --bg: var(--bg);
  --white: var(--text);
  --muted: var(--muted);
  --muted2: rgba(15, 23, 42, .52);

  --border: var(--border);
  --glass: rgba(37, 99, 235, .08);
  --glass2: var(--card);

  --shadow: var(--shadow);

  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.lp a {
  color: inherit;
  text-decoration: none;
}

.lp::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(37, 99, 235, .18) 0%, transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(37, 99, 235, .10) 0%, transparent 50%),
    radial-gradient(circle at 40% 60%, rgba(15, 23, 42, .06) 0%, transparent 55%),
    var(--bg);
  z-index: -2;
}

.lp::after {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(37, 99, 235, .08) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: lpMoveGrid 20s linear infinite;
  z-index: -1;
  pointer-events: none;
}

@keyframes lpMoveGrid {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(50px, 50px);
  }
}

.lp-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================================
   TOP NAV (fixed)
========================================= */

.lp-top {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  padding: 18px 0;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.lp-top .lp-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.lp-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lp-logo {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background-color: var(--accent-weak);
  background-image: url("../images/logo/logo.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 70%;
  border: 1px solid rgba(37, 99, 235, .22);
}

.lp-brand strong {
  display: block;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -.2px;
}

.lp-brand span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.lp-nav {
  display: flex;
  gap: 40px;
  align-items: center;
}

.lp-nav a {
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  transition: opacity .3s ease;
}

.lp-nav a:hover {
  color: var(--accent);
  opacity: 1;
}

.lp-cta {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* =========================================
   MOBILE NAV (burger + drawer)
   -> active via body.nav-open
========================================= */

.lp-burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
}

.lp-burger:hover {
  background: var(--accent-weak);
}

.lp-burger:active {
  transform: scale(.98);
}

.lp-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
}

.lp-drawer .backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .35);
}

.lp-drawer .panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(360px, 86vw);
  background: var(--card);
  border-left: 1px solid var(--border);
  backdrop-filter: blur(12px);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform: translateX(105%);
  transition: transform .25s ease;
}

body.nav-open {
  overflow: hidden;
}

body.nav-open .lp-drawer {
  display: block;
}

body.nav-open .lp-drawer .panel {
  transform: translateX(0);
}

.lp-drawer .panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.lp-drawer .close {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
}

.lp-drawer .close:hover {
  background: var(--accent-weak);
}

.lp-drawer a {
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  font-weight: 800;
}

.lp-drawer a:hover {
  background: var(--accent-weak);
}

.lp-drawer .row {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.lp-drawer .row .lp-btn {
  width: 100%;
}

/* =========================================
   BUTTONS (shine/ripple style)
========================================= */

/* ===========================
   Boutons landing page
   =========================== */

.lp-btn {
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition:
    transform .25s ease,
    box-shadow .25s ease,
    opacity .25s ease;
  text-decoration: none;
  user-select: none;
  position: relative;
}

/* ---------- PRIMARY ---------- */

.lp-btn.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 40px rgba(37, 99, 235, .24);
  overflow: hidden;
}

.lp-btn.primary::before {
  content: '';
  position: absolute;
  inset: 0;
  left: -110%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, .35),
      transparent);
  transition: left .5s ease;
}

.lp-btn.primary:hover::before {
  left: 110%;
}

.lp-btn.primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 16px 54px rgba(37, 99, 235, .30);
}

/* ---------- SECONDARY ---------- */

.lp-btn:not(.primary) {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  overflow: hidden;
  z-index: 0;
}

.lp-btn:not(.primary)::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: var(--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width .5s ease, height .5s ease;
  z-index: -1;
  pointer-events: none;
}

.lp-btn:not(.primary):hover::before {
  width: 320px;
  height: 320px;
}

.lp-btn:not(.primary):hover {
  color: #fff;
  transform: translateY(-3px) scale(1.05);
}

.lp-btn:not(.primary)>* {
  position: relative;
  z-index: 1;
}



/* ===========================
   Boutons PRICING
   =========================== */

.price-btn {
  --bg: var(--accent);
  --text: #fff;
  --border: var(--accent);
  --hover-text: #fff;

  padding: 14px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  text-decoration: none;
  user-select: none;

  position: relative;
  overflow: hidden;

  transition:
    transform .25s ease,
    box-shadow .25s ease,
    color .25s ease;

  /* ✅ AJOUTS */
  margin-top: 20px;
  /* décolle du contenu */
  align-self: center;
  /* centre dans la card */
}

/* ---------- SOLID ---------- */

.price-btn.solid {
  background: var(--bg);
  color: var(--text);
  border: none;
  box-shadow: 0 10px 32px rgba(37, 99, 235, .20);
}

.price-btn.solid::before {
  content: '';
  position: absolute;
  inset: 0;
  left: -110%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, .35),
      transparent);
  transition: left .5s ease;
}

.price-btn.solid:hover::before {
  left: 110%;
}

.price-btn.solid:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 16px 48px rgba(37, 99, 235, .25);
}

/* ---------- OUTLINE ---------- */

.price-btn.outline {
  background: transparent;
  color: var(--bg);
  border: 2px solid var(--border);
  z-index: 0;
}

.price-btn.outline::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: var(--bg);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width .5s ease, height .5s ease;
  z-index: -1;
  pointer-events: none;
}

.price-btn.outline:hover::before {
  width: 320px;
  height: 320px;
}

.price-btn.outline:hover {
  color: var(--hover-text);
  transform: translateY(-3px) scale(1.05);
}

/* Sécurité texte / icônes */
.price-btn>* {
  position: relative;
  z-index: 1;
}



/* =========================================
   HERO
========================================= */

.lp-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 126px 0 60px;
  /* space for fixed nav */
  overflow: hidden;
}

/* circles */
.lp-circles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.lp-circles span {
  position: absolute;
  border: 1px solid rgba(37, 99, 235, .18);
  border-radius: 50%;
  animation: lpFloat 20s infinite ease-in-out;
}

.lp-circles span:nth-child(1) {
  width: 400px;
  height: 400px;
  top: 10%;
  right: 10%;
  background: radial-gradient(circle, rgba(37, 99, 235, .08) 0%, transparent 70%);
  animation-delay: 0s;
}

.lp-circles span:nth-child(2) {
  width: 300px;
  height: 300px;
  bottom: 20%;
  left: 10%;
  background: radial-gradient(circle, rgba(37, 99, 235, .06) 0%, transparent 70%);
  animation-delay: 3s;
}

.lp-circles span:nth-child(3) {
  width: 200px;
  height: 200px;
  top: 50%;
  right: 5%;
  background: radial-gradient(circle, rgba(37, 99, 235, .05) 0%, transparent 70%);
  animation-delay: 6s;
}

@keyframes lpFloat {

  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: .30;
  }

  50% {
    transform: translateY(-30px) scale(1.1);
    opacity: .60;
  }
}

/* hero layout */
.lp-hero-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
  min-width: 0;
}

/* left content */
.lp-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, .18);
  background: var(--accent-weak);
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  animation: lpFadeUp .9s ease both;
}

.lp-title {
  margin-top: 24px;
  font-size: 64px;
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -2px;
  animation: lpFadeUp 1s ease .08s both;
  text-align: left;
}

.lp-title b {
  background: linear-gradient(135deg, var(--accent) 0%, #60a5fa 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% auto;
  animation: lpShine 3s linear infinite;
}

@keyframes lpShine {
  to {
    background-position: 200% center;
  }
}

.lp-sub {
  margin-top: 18px;
  font-size: 20px;
  line-height: 1.65;
  color: var(--muted);
  animation: lpFadeUp 1s ease .18s both;
  text-align: left;
}

.lp-hero-actions {
  margin-top: 26px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-start;
  animation: lpFadeUp 1s ease .28s both;
}

.lp-trust {
  margin-top: 22px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
  animation: lpFadeUp 1s ease .38s both;
  justify-content: flex-start;
}

.lp-trust .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  margin-right: 6px;
}

@keyframes lpFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* preview card */
.lp-preview {
  position: relative;
  border-radius: 20px;
  border: 1px solid rgba(37, 99, 235, .18);
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 18px;
  transition: all .5s ease;
  overflow: hidden;
  max-width: 100%;
}

.lp-preview:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 30px 80px rgba(15, 23, 42, .18);
}

.lp-preview-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(37, 99, 235, .18) 0%, transparent 70%);
  filter: blur(60px);
  z-index: 0;
  animation: lpPulse 4s infinite ease-in-out;
  pointer-events: none;
}

@keyframes lpPulse {

  0%,
  100% {
    opacity: .5;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    opacity: .8;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

.lp-preview-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  position: relative;
  z-index: 2;
}

.lp-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, .18);
  background: var(--accent-weak);
  backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.lp-mini {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.lp-card {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
}

.lp-card span {
  color: var(--muted);
  font-size: 12px;
}

.lp-card strong {
  color: var(--text);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .4px;
}

.lp-chart {
  margin-top: 14px;
  height: 170px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(37, 99, 235, .04);
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 10px;
  align-items: end;
  position: relative;
  z-index: 2;
}

.lp-chart span {
  display: block;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(37, 99, 235, .45), rgba(37, 99, 235, .08));
  border: 1px solid rgba(37, 99, 235, .18);
  box-shadow: 0 10px 20px rgba(37, 99, 235, .20);
}

.note {
  margin-top: 40px;
  font-size: 13px;
  color: var(--muted);
  position: relative;
  z-index: 2;
}

/* =========================================
   SECTIONS
========================================= */

.lp-intro {
  max-width: 860px;
  margin: 0 auto;
}

.lp-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, .24);
  background: rgba(37, 99, 235, .08);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.lp-section-tight {
  padding-top: 74px;
  padding-bottom: 74px;
}

.lp-impact {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.lp-impact article {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, .72);
}

.lp-impact strong {
  display: block;
  font-size: 24px;
  line-height: 1;
  color: var(--text);
}

.lp-impact span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
}

.lp-value-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.lp-value-card {
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 26px;
  box-shadow: var(--shadow);
  transition: transform .3s ease, border-color .3s ease;
}

.lp-value-card:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, .35);
}

.lp-value-card .icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent-weak);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.lp-value-card h3 {
  margin-top: 18px;
  font-size: 22px;
  font-weight: 800;
}

.lp-value-card p {
  margin: 10px 0 0;
  text-align: left;
  font-size: 15px;
  line-height: 1.65;
}

.lp-flow {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.lp-flow-step {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card);
  padding: 24px;
}

.lp-flow-step span {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-weak);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.lp-flow-step strong {
  display: block;
  margin-top: 14px;
  font-size: 20px;
}

.lp-flow-step p {
  margin: 10px 0 0;
  text-align: left;
  color: var(--muted);
  opacity: 1;
  font-size: 15px;
}

.lp-section {
  padding: 120px 0;
  position: relative;
}

/* light section like "main-features" */
.lp-section.is-light {
  background:
    radial-gradient(circle at 20% 20%, rgba(37, 99, 235, .10) 0%, transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(37, 99, 235, .08) 0%, transparent 50%),
    var(--bg);
  color: var(--text);
}

.lp-section.is-light::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(37, 99, 235, .08) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: .5;
  pointer-events: none;
}

.lp-section h2 {
  text-align: center;
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -1px;
  position: relative;
  z-index: 1;
}

.lp-section p {
  text-align: center;
  font-size: 18px;
  line-height: 1.7;
  opacity: .85;
  max-width: 780px;
  margin: 18px auto 0;
  position: relative;
  z-index: 1;
}

.lp-h2-dark {
  color: var(--text);
}

.lp-p-dark {
  color: var(--muted);
  opacity: 1;
}

/* grid cards */
.lp-grid3 {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  position: relative;
  z-index: 1;
}

.lp-feature {
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--accent-weak);
  transition: all .3s ease;
}

.lp-section.is-light .lp-feature:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
  border-color: rgba(37, 99, 235, .25);
}

.lp-feature .icon {
  width: 60px;
  height: 60px;
  background: var(--accent);
  color: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.lp-feature strong {
  font-size: 24px;
  font-weight: 800;
  display: block;
  margin-bottom: 12px;
}

.lp-feature span {
  color: var(--muted);
  line-height: 1.6;
  display: block;
}

/* feature rows (landing page) */
.lp-feature-rows {
  margin-top: 80px;
  display: grid;
  gap: 72px;
  position: relative;
  z-index: 1;
}

.lp-feature-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
  align-items: center;
}

.lp-feature-row.is-reverse .lp-feature-content {
  order: 2;
}

.lp-feature-row.is-reverse .lp-feature-visual {
  order: 1;
}

.lp-feature-content {
  max-width: 520px;
}

.lp-feature-content h3 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  text-align: left;
}

.lp-feature-lead {
  text-align: left;
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 28px;
}

.lp-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.lp-feature-list li {
  position: relative;
  padding-left: 32px;
  font-size: 16px;
}

.lp-feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}

.lp-feature-visual {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.02));
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 25px;
  /* min-height: 320px; */
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

.lp-feature-visual img {
  max-width: 100%;
  width: 620px;
  height: auto;
  display: block;
  border-radius: 18px;
}

/* dark card override (FAQ) */
.dark-card {
  background: var(--card);
  border-color: var(--border);
}

.dark-card strong {
  color: var(--text);
}

.dark-card span {
  color: var(--muted);
}

.dark-card:hover {
  transform: translateY(-10px);
  border-color: rgba(37, 99, 235, .35);
  background: rgba(37, 99, 235, .06);
}

/* FAQ accordion */
.lp-faq {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  position: relative;
  z-index: 1;
}

.lp-faq-item {
  padding: 24px 28px;
  border-radius: 16px;
  border: 1px solid var(--border);
  transition: border-color .3s ease, background .3s ease, transform .3s ease;
}

.lp-faq-item summary {
  list-style: none;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.lp-faq-item summary::-webkit-details-marker {
  display: none;
}

.lp-faq-item summary::after {
  content: "+";
  font-size: 22px;
  line-height: 1;
  color: var(--muted);
  transition: transform .3s ease, color .3s ease;
}

.lp-faq-item[open] summary::after {
  transform: rotate(45deg);
  color: var(--accent);
}

.lp-faq-content {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.6;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .35s ease, opacity .35s ease;
}

.lp-faq-item[open] .lp-faq-content {
  max-height: 240px;
  opacity: 1;
}

.lp-faq-item:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, .35);
  background: rgba(37, 99, 235, .06);
}

/* steps */
.lp-steps {
  margin-top: 70px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.lp-step {
  padding: 34px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--accent-weak);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.lp-step .n {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.lp-step strong {
  display: block;
  margin-top: 16px;
  font-size: 22px;
  font-weight: 900;
  color: var(--text);
}

.lp-step p {
  margin-top: 10px;
  color: var(--muted);
  text-align: left;
  opacity: 1;
}

/* cta box */
.lp-cta-box {
  margin-top: 50px;
  padding: 26px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--accent-weak);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.lp-cta-box strong {
  display: block;
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
}

.lp-cta-box span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-top: 6px;
}

.lp-cta-box-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* pricing */
.lp-pricing {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  position: relative;
  z-index: 1;
}

.lp-price {
  padding: 34px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card);
  transition: transform .3s ease, box-shadow .3s ease;
}

.lp-price:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
}

.lp-price .tag {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent-weak);
  border: 1px solid rgba(37, 99, 235, .18);
  font-weight: 800;
  font-size: 13px;
  width: fit-content;
}

.lp-price h3 {
  margin-top: 18px;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -1px;
}

.lp-price .money {
  margin-top: 10px;
  font-size: 20px;
  font-weight: 900;
}

.lp-price ul {
  margin-top: 18px;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.lp-price .lp-btn {
  margin-top: 22px;
  width: 100%;
}

/* featured plan */
.lp-price.featured {
  border-color: rgba(37, 99, 235, .35);
  box-shadow: 0 25px 80px rgba(37, 99, 235, .18);
  transform: translateY(-6px);
}

/* footer */
.lp-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  background: var(--card);
}

.lp-footer-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}

.lp-footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.lp-footer-links a {
  color: var(--text);
}

.lp-footer-links a:hover {
  opacity: .65;
}

/* =========================================
   RESPONSIVE (refait propre)
========================================= */

/* Fluid sizes */
@media (max-width: 1100px) {
  .lp-title {
    font-size: 52px;
  }

  .lp-hero-grid {
    gap: 44px;
  }

  .lp-grid3 {
    gap: 28px;
  }

  .lp-pricing {
    gap: 28px;
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .lp-hero {
    padding: 112px 0 56px;
  }

  .lp-hero-grid {
    grid-template-columns: 1fr;
    gap: 34px;
    text-align: center;
  }

  .lp-title {
    text-align: center;
    font-size: 44px;
  }

  .lp-sub {
    text-align: center;
    font-size: 18px;
  }

  .lp-hero-actions,
  .lp-trust {
    justify-content: center;
  }

  .lp-preview {
    max-width: 720px;
    margin: 0 auto;
  }

  /* 3 -> 2 colonnes sur tablette */
  .lp-grid3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 56px;
  }

  .lp-faq {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 56px;
  }

  .lp-pricing {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 56px;
  }

  .lp-steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .lp-section {
    padding: 90px 0;
  }

  .lp-section h2 {
    font-size: 38px;
  }

  .lp-feature-rows {
    gap: 56px;
    margin-top: 64px;
  }

  .lp-feature-row {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }

  .lp-impact,
  .lp-value-grid,
  .lp-flow {
    grid-template-columns: 1fr 1fr;
  }

  .lp-feature-row.is-reverse .lp-feature-content,
  .lp-feature-row.is-reverse .lp-feature-visual {
    order: 0;
  }

  .lp-feature-content {
    margin: 0 auto;
  }

  .lp-feature-content h3,
  .lp-feature-lead {
    text-align: center;
  }

  .lp-feature-list {
    max-width: 420px;
    margin: 0 auto;
    text-align: left;
  }

  .lp-feature-visual {
    min-height: 260px;
    padding: 28px;
  }
}

/* Mobile nav switch */
@media (max-width: 820px) {
  .lp-top {
    padding: 14px 0;
  }

  .lp-nav {
    display: none;
  }

  .lp-burger {
    display: flex;
  }

  /* CTA compact (garde visible) */
  .lp-cta .lp-btn {
    padding: 12px 14px;
  }
}

/* Phone */
@media (max-width: 640px) {
  .lp-container {
    padding: 0 16px;
  }

  .lp-hero {
    padding: 104px 0 48px;
  }

  .lp-title {
    font-size: 36px;
  }

  .lp-sub {
    font-size: 16px;
  }

  /* boutons hero en full */
  .lp-hero-actions {
    gap: 12px;
  }

  .lp-hero-actions .lp-btn {
    width: 100%;
  }

  /* 2 -> 1 colonne */
  .lp-grid3 {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 44px;
  }

  .lp-faq {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 44px;
  }

  .lp-pricing {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 44px;
  }

  .lp-impact,
  .lp-value-grid,
  .lp-flow {
    grid-template-columns: 1fr;
  }

  .lp-feature,
  .lp-price {
    padding: 24px;
  }

  .lp-step {
    padding: 24px;
  }

  .lp-feature-content h3 {
    font-size: 32px;
  }

  .lp-feature-visual {
    padding: 22px;
    min-height: 220px;
  }

  .lp-cta-box {
    padding: 18px;
  }

  .lp-cta-box-actions .lp-btn {
    width: 100%;
  }
}

/* Small phone */
@media (max-width: 480px) {
  .lp-brand span {
    display: none;
  }

  /* CTA topbar hidden (tu peux enlever si tu veux garder) */
  .lp-cta {
    display: none;
  }

  .lp-title {
    font-size: 34px;
  }

  .lp-chip {
    height: 34px;
    padding: 0 12px;
    font-size: 12px;
  }

  .lp-mini {
    grid-template-columns: 1fr;
  }

  .lp-chart {
    height: 150px;
    padding: 12px;
    gap: 8px;
  }
}

/* SweetAlert2 modern look */
.swal2-popup {
  border-radius: 18px;
  padding: 28px 28px 24px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.swal2-title {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
}

.swal2-html-container {
  font-size: 15px;
  line-height: 1.6;
  color: #475569;
}

.swal2-actions {
  gap: 12px;
}

.swal2-styled {
  border-radius: 999px;
  font-weight: 600;
  padding: 10px 22px;
  box-shadow: none;
}

.swal2-confirm {
  background: #2563eb !important;
}

.swal2-confirm:hover {
  background: #1d4ed8 !important;
}

.swal2-cancel {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

.swal2-cancel:hover {
  background: #cbd5f5 !important;
}

.swal2-icon {
  margin-top: 8px;
}

.swal2-icon.swal2-success {
  border-color: #22c55e;
  color: #22c55e;
}

.swal2-icon.swal2-error {
  border-color: #ef4444;
  color: #ef4444;
}

.swal2-icon.swal2-warning {
  border-color: #f59e0b;
  color: #f59e0b;
}

@media (max-width: 900px) {
  .search {
    max-width: 100%;
  }

  .search-summary {
    flex-direction: column;
    align-items: flex-start;
  }

  .search-counts {
    width: 100%;
    justify-content: space-between;
  }

  .search-grid {
    grid-template-columns: 1fr;
  }

  .result-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .result-side {
    width: 100%;
    justify-content: flex-start;
  }
}

/* Badge promo (succès) */
.promo-badge-success {
  border-color: rgba(22, 163, 74, .35);
  background: linear-gradient(135deg, rgba(22, 163, 74, .18), rgba(34, 197, 94, .22));
  color: #14532d;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(22, 163, 74, .22);
  animation: promoBadgePulse 1.6s ease-in-out infinite;
}

.promo-badge-success .promo-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #16a34a;
  box-shadow: 0 0 0 0 rgba(22, 163, 74, .65);
  animation: promoDotPing 1.6s ease-out infinite;
}

@keyframes promoBadgePulse {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-1px) scale(1.03); }
}

@keyframes promoDotPing {
  0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, .65); }
  70% { box-shadow: 0 0 0 8px rgba(22, 163, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .promo-badge-success,
  .promo-badge-success .promo-dot {
    animation: none !important;
  }
}
