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

:root {
  --primary-color: #5856d6;
  --primary-light: #f5f4ff;

  --secondary-color: #00153e;

  --text-primary: #2c3e50;
  --text-secondary: #7f8c8d;

  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --border-color: #e0e0e0;

  --success-color: #27ae60;
  --danger-color: #e74c3c;
  --warning-color: #f39c12;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

  --sidebar-width: 200px;
  --header-height: 70px;

  --transition: all 0.3s ease;

  --transition-2: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  --color-text: #111827;
  --color-text-secondary: #6b7280;

  --dark-bg: #2d3e50;
  --body-bg: #f5f5f7;
  --light-bg: #f5f5f7;
  --white: #ffffff;

  --text-dark: #2c3e50;
  --text-light: #6c757d;
  --active-color: #ff6600;
  --active-bg: rgba(255, 102, 0, 0.08);
  --border: #e0e0e0;

  --muted: #6b7280;
  --card-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  --accent: #10b981;
  --danger: #ef4444;
  --radius: 10px;
}
html,
body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--color-text-secondary);
  min-height: 100vh;
  background-color: var(--body-bg);
  display: flex;
  flex-direction: column;
  /* overflow: hidden; */
}

.container {
  /* max-width: 1500px; */
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  flex: 1;
}
.mb {
  margin-bottom: 10px;
}
/* Header  */
.header {
  background: #675bee;
  padding-top: 10px;
}

/* Structure */
.header-content {
  max-width: 1500px;
  margin: auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Menu */
.nav-menu {
  display: flex;
  gap: 6px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-radius: 8px 8px 0 0;
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s;
}

.nav-link span {
  font-size: 14px;
}

.nav-link svg {
  opacity: 0.9;
}

.nav-link.active {
  background: #ffffff;
  color: #000000;
  border-bottom: 3px solid white;
  box-shadow: 0px -2px 3px rgba(255, 255, 255, 0.4);
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 15px;
}

.icon-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.user-menu {
  position: relative;
}

.user-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 10px 0;
  min-width: 150px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.user-menu:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 10px 20px;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: background 0.3s ease;
}

.dropdown-item:hover {
  background: #f8f9fa;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn span {
  width: 25px;
  height: 3px;
  background: var(--color-text-secondary);
  transition: all 0.3s ease;
}

/* slidebar */

.main-layout {
  display: flex;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.sidebar {
  width: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: width 0.3s;

  position: sticky;
  top: 0;
  height: calc(100vh - 50px);
  overflow: hidden;
}

.sidebar.collapsed {
  width: 60px;
}

.sidebar.collapsed .company-select,
.sidebar.collapsed .nav-item span:not(.icon),
.sidebar.collapsed .add-btn,
.sidebar.collapsed .sidebar-promo,
.sidebar.collapsed .sidebar-footer span:not(.icon) {
  display: none;
}

.sidebar-header {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.company-logo {
  font-size: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f7;
  border-radius: 8px;
  flex-shrink: 0;
}

.company-select {
  flex: 1;
  padding: 8px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background: white;
  cursor: pointer;
}

.company-select img {
  width: auto;
  height: 70px;
  object-fit: contain;
  border-radius: 20px;
}

.collapse-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 20px 20px;
  padding: 8px;
  background: transparent;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  color: #666;
  transition: all 0.2s;
}

.collapse-btn:hover {
  background: #f5f5f7;
}

.sidebar-nav {
  flex: 1;
  padding: 0 12px;
}

.nav-item {
  display: flex;
  align-items: center;
  color: #1f2937;
  text-decoration: none;
  flex-grow: 1;
  padding: 6px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  box-sizing: border-box;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
}

.nav-item:hover {
  background-color: #d6d7e7;
}

.nav-item.active {
  background: var(--bg-white);
  color: var(--primary-color);
  font-weight: 500;
}

.nav-item .icon {
  font-size: 18px;
  margin-right: 12px;
  flex-shrink: 0;
}

.nav-item span:not(.icon) {
  flex: 1;
}

.add-btn {
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-color);
  color: white;
  border: 1px solid var(--primary-color);
  margin-right: 1rem;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  flex-shrink: 0;
}

.add-btn:hover,
.devis-create-btn:hover,
.devis-icon-btn-primary:hover {
  background: linear-gradient(
    to bottom,
    var(--primary-light),
    var(--primary-color)
  );
  border-color: transparent;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  transform: scale(1.1);
}

.sidebar-promo {
  margin: 20px;
  padding: 20px;
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  border-radius: 12px;
  color: white;
}

.sidebar-promo h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.sidebar-promo p {
  font-size: 13px;
  opacity: 0.9;
  margin-bottom: 16px;
}

.promo-btn {
  width: 100%;
  padding: 10px;
  background: var(--primary-color);
  color: var(--color-text-secondary);
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.promo-btn:hover {
  background: #ffb300;
}

.sidebar-footer {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--color-text-secondary);
  border-top: 1px solid #e0e0e0;
}
/* la partie du main section */

.main-content {
  flex: 1;
  padding: 10px;
  background: #f5f5f7;
  display: flex;
  flex-direction: column;
  overflow: auto;
}

.test-banner {
  background: linear-gradient(135deg, #ffb74d 0%, #ffa726 100%);
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.exit-test-btn {
  padding: 10px 20px;
  background: white;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.exit-test-btn:hover {
  background: #f5f5f7;
}

.cardDash {
  background: white;
  border-radius: 16px;
  display: none;
  flex-direction: column;
  height: calc(100vh - 65px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.cardDash.active {
  display: flex;
}
/* HEADER STICKY */
.headCard,
.devis-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 20px 25px;
}

.headCard {
  background: white;
  z-index: 20;
  border-bottom: 1px solid #ebebef;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.devis-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.contCardss {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.search-box {
  position: relative;
  max-width: 400px;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--text-light);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 12px 16px 12px 48px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(66, 154, 255, 0.1);
}

.search-input::placeholder {
  color: var(--text-light);
}

.tabsCard {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}

.tabsCard button {
  background: none;
  border: none;
  padding: 10px 0;
  color: #6b6b6d;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tabsCard button:hover {
  color: var(--primary-color);
  border-bottom: 3px solid var(--primary-color);
}

.tabsCard .active {
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  font-weight: 600;
}

.tab-section {
  display: none;
}

.tab-section.active {
  display: block;
}

/* CONTENU SCROLLABLE */
.contentCardsGrand {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}
.contentCardsGrand::-webkit-scrollbar {
  display: none;
}

.fts {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 10px;
}
.contentCards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.contentCards > :first-child {
  grid-column: 1 / -1;
}

.contentCards::-webkit-scrollbar {
  display: none;
}

/* CARD STYLE */

.cardAcc {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 10px;
  height: 240px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  transition: var(--transition);
  border: 1px solid rgba(12, 13, 15, 0.12);
}

.cardAcc:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.chart-container {
  position: relative;
  height: 120px;
}

.big-number {
  font-size: 22px;
  font-weight: 600;
  color: #f59b22;
}

.big-number.purple {
  color: #5a48e8;
}

.cardAcc p {
  color: #6e6e72;
  font-size: 14px;
}

.blogMag {
  width: 40px;
  height: 40px;
  background: rgba(255, 140, 0, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.blogMag img {
  width: 100%;
  height: 100%;
}
.eleBlog {
  display: flex;
  gap: 12px;
  align-items: start;
  display: flex;
  gap: 12px;
  align-items: start;
  border-bottom: 1px solid var(--light-bg);
  margin-bottom: 10px;
}
/* pour la 3em partie */

.right-sidebar {
  width: 300px;
  padding: 20px;
  background: #f5f5f7;
}

.ad-card {
  background: white;
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ad-image {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  height: 150px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.wix-logo {
  font-size: 32px;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
}

.mockup {
  display: flex;
  gap: 12px;
}

.screen {
  background: white;
  width: 50px;
  height: 40px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.ad-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--color-text-secondary);
}

.ad-card p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
}

.cta-btn {
  width: 100%;
  padding: 12px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 12px;
  transition: all 0.2s;
}

.cta-btn:hover {
  background: #4a5ab8;
}

.dismiss-btn {
  width: 100%;
  padding: 10px;
  background: transparent;
  color: #999;
  border: none;
  cursor: pointer;
  font-size: 13px;
  transition: color 0.2s;
}

.dismiss-btn:hover {
  color: #666;
}

/* Select période */
.period-select {
  margin: 20px 0;
}

.period-select select {
  width: 260px;
  padding: 10px 14px;
  border: 1px solid #c5c5ff;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  background: white;
}

.period-select select:focus {
  border-color: #5b4ef3;
}

/* TABLEAU */
.table-header,
.table-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 12px 0;
  font-size: 14px;
  align-items: center;
}

.table-header {
  margin-top: 15px;
  font-weight: 600;
  color: #5c5c5c;
  border-bottom: 1px solid #e8e8e8;
}

.table-row {
  border-bottom: 1px solid #f1f1f1;
  transition: background 0.15s;
}

.table-row:hover {
  background: #fafafa;
  cursor: pointer;
}

.info-icon {
  font-size: 12px;
  font-style: normal;
  color: #5b4ef3;
  cursor: pointer;
  margin-left: 4px;
}

/* partie activity */

.activity-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
  /* remplit le conteneur .contentCards */
  gap: 14px;
}

/* Topbar (search + actions) */
.activity-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 4px;
}

/* search */
.activity-search input[type="search"] {
  width: 420px;
  max-width: 100%;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid #ececec;
  background: #fafafa;
  outline: none;
  font-size: 14px;
}

/* actions */
.activity-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn.small {
  background: #fff;
  border: 1px solid #e5e5e9;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}

.icon-btnx {
  background: white;
  border: 1px solid #e5e5e9;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
}

/*  Timeline list  */

.activity-list {
  position: relative;
  margin: 0;
  list-style: none;
  overflow: auto;
  flex: 1;
}

/* vertical line */
.activity-list::before {
  content: "";
  position: absolute;
  left: 20px;
  /* position de la ligne */
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.04));
  border-radius: 2px;
}

/* item */
.activity-item {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 8px;
  border-radius: 10px;
  transition: background 0.12s ease;
  min-height: 56px;
}

/* hover */
.activity-item:hover {
  background: rgba(90, 72, 232, 0.03);
}

/* dot */
.activity-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: white;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(16, 24, 40, 0.06);
}

.activity-success .activity-dot {
  background: #f59b22;
}

.activity-add .activity-dot {
  background: #f28b6e;
}

.activity-info .activity-dot {
  background: #5a48e8;
}

.activity-warning .activity-dot {
  background: #f2c94c;
}

.activity-content {
  font-size: 14px;
  color: var(--color-text-secondary);
}

.activity-title {
  margin-bottom: 6px;
  color: #1f2937;
  line-height: 1.3;
}

.activity-meta {
  font-size: 13px;
  color: #6b7280;
}

.icon-action {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: #9ca3af;
}

.activity-list a.link {
  text-decoration: none;
  color: #2563eb;
}

/* devis */

.devis-container {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.devis-title {
  font-size: 2rem;
  font-weight: 600;
  color: #1d1d1f;
}

.devis-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.devis-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.devis-search-icon {
  position: absolute;
  left: 12px;
  color: #86868b;
  pointer-events: none;
}

.devis-search-input {
  padding: 10px 16px 10px 40px;
  border: 1px solid #d2d2d7;
  border-radius: 8px;
  font-size: 14px;
  width: 240px;
  transition: all 0.2s ease;
  background-color: white;
}

.devis-search-input:focus {
  outline: none;
  border-color: #0071e3;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

.cont-btn {
  margin: 0 auto;
}
.devis-create-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.devis-export-btn,
.return {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background-color: white;
  border: 1px solid #d2d2d7;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #1d1d1f;
}

.devis-export-btn:hover,
.return:hover {
  background-color: #f5f5f7;
  border-color: #86868b;
}

.devis-filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 16px;
}

.devis-tabs {
  display: flex;
  gap: 8px;
}

.devis-tab {
  padding: 8px 16px;
  background-color: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  color: #86868b;
  transition: all 0.2s ease;
}

.devis-tab-active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.devis-sort-dropdown {
  position: relative;
}

.devis-sort-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background-color: white;
  border: 1px solid #d2d2d7;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.devis-sort-btn:hover {
  background-color: #f5f5f7;
}

.devis-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.devis-stat-card {
  background-color: white;
  border: 2px solid #e5e5e7;
  border-radius: 12px;
  padding: 10px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.devis-stat-card:hover {
  border-color: #d2d2d7;
  transform: translateY(-2px);
}

.devis-stat-active {
  border-color: var(--primary-color);
  background-color: #f5f4ff;
}

.devis-stat-label {
  font-size: 14px;
  color: #86868b;
  margin-bottom: 8px;
}

.devis-stat-number {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1d1d1f;
}

.devis-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.default-item {
  /* display: flex; */
  display: none;
  flex-direction: column;
  gap: 3rem;
  text-align: center;
  margin-top: 1.5rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.default-itemx {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  text-align: center;
  margin-top: 1.5rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.default-item img,
.default-itemx img {
  width: 100%;
}

.default-box {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: #262626;
  align-items: center;
}
.default-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0a0a0a;
}

.devis-item {
  background-color: white;
  border: 1px solid #e5e5e7;
  border-radius: 12px;
  padding: 20px;
  transition: all 0.2s ease;
}

.devis-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.devis-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  gap: 16px;
}

.devis-item-info {
  flex: 1;
}

.devis-list2,
.devis-list100 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 285px));
  gap: 16px;
}

.devis-list2 .devis-item-details,
.devis-list100 .devis-item-details {
  display: block;
}

.devis-item-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.devis-item-title-row h5 {
  cursor: pointer;
}
.devis-item-title-row h5:hover {
  color: var(--primary-color);
}
.devis-item-id {
  font-size: 18px;
  font-weight: 600;
  color: #1d1d1f;
}

.devis-item-badge {
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
}

.devis-badge-terminer {
  background-color: #d4f4dd;
  color: #1d8b3a;
}
.devis-badge-programmer {
  background-color: #d4ecf4;
  color: #1d548b;
}
.devis-badge-en-cours {
  background-color: #f4e2d4;
  color: #8b421d;
}

.devis-item-client {
  font-size: 14px;
  color: #86868b;
}

.devis-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.devis-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: white;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #1d1d1f;
}

.devis-icon-btn:hover {
  background-color: #f5f5f7;
  border-color: #86868b;
}

.devis-icon-btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  border: none;
}

.devis-more-btn {
  position: relative;
}

.devis-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background-color: white;
  border: 1px solid #e5e5e7;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  min-width: 240px;
  padding: 8px;
  display: none;
  max-height: 500px;
  overflow-y: auto;
  z-index: 9;
  isolation: isolate;
}

.devis-dropdown-menu.devis-dropdown-active {
  display: block;
}

.devis-dropdown-item {
  width: 100%;
  padding: 10px 12px;
  background-color: transparent;
  border: none;
  text-align: left;
  font-size: 14px;
  color: #1d1d1f;
  cursor: pointer;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.devis-dropdown-item:hover {
  background-color: #f5f5f7;
}

.devis-dropdown-divider {
  height: 1px;
  background-color: #e5e5e7;
  margin: 8px 0;
}

.devis-dropdown-label {
  padding: 8px 12px 4px;
  font-size: 11px;
  font-weight: 600;
  color: #86868b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.devis-item-details {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.devis-detail-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #86868b;
}

.devis-detail-text {
  font-size: 14px;
  color: #1d1d1f;
  font-weight: 500;
}

.devis-detail-secondary {
  font-size: 14px;
  color: #86868b;
}

/* Responsive Design */

@media (max-width: 1400px) {
  .right-sidebar {
    display: none;
  }
}

@media (max-width: 1024px) {
  .search-inputs {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }

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

/* Responsive */
@media (max-width: 900px) {
  .table-header,
  .table-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .table-header span:nth-child(4),
  .table-header span:nth-child(5),
  .table-row span:nth-child(4),
  .table-row span:nth-child(5) {
    display: none;
  }

  .activity-list {
    padding-left: 28px;
  }

  .activity-item {
    grid-template-columns: 36px 1fr auto;
    gap: 10px;
    padding: 12px 6px;
  }

  .activity-dot {
    width: 30px;
    height: 30px;
  }

  .activity-search input[type="search"] {
    width: 260px;
  }
}

@media (max-width: 768px) {
  /* .nav-menu {
    display: none;
  } */
  /* 
  .mobile-menu-btn {
    display: flex;
  } */

  .devis-list2,
  .devis-list100 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  .contCardss {
    flex-direction: column;
  }

  .nav-link span {
    display: none;
  }
  .sidebar {
    height: auto;
  }
  .header-actions {
    gap: 10px;
  }

  .main-layout {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
  }

  .container {
    margin: 0;
  }

  .test-banner {
    flex-direction: column;
    text-align: center;
  }

  .devis-container {
    padding: 16px;
  }

  .devis-title {
    font-size: 1.5rem;
  }

  .devis-header {
    flex-direction: column;
    align-items: stretch;
  }

  .devis-header-actions {
    flex-wrap: wrap;
  }

  .devis-search-input {
    width: 100%;
    flex: 1;
  }

  .devis-stats {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
  }

  .devis-stat-card {
    padding: 16px;
  }

  .devis-stat-number {
    font-size: 24px;
  }

  .devis-item {
    padding: 16px;
  }

  .devis-item-header {
    flex-direction: column;
    align-items: stretch;
  }

  .devis-item-actions {
    justify-content: flex-end;
  }

  .devis-item-details {
    flex-direction: column;
    gap: 12px;
  }
}
@media (max-width: 600px) {
  .table-header,
  .table-row {
    grid-template-columns: repeat(2, 1fr);
    font-size: 13px;
  }

  .table-header span:nth-child(3),
  .table-row span:nth-child(3) {
    display: none;
  }

  .period-select select {
    width: 100%;
  }
  .activity-topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .activity-search input[type="search"] {
    width: 100%;
  }

  .activity-list {
    padding-left: 20px;
  }

  .activity-item {
    grid-template-columns: 32px 1fr;
  }
}
@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .header-content {
    height: 60px;
  }

  .logo-text {
    font-size: 20px;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .search-form {
    padding: 15px;
  }

  .daily-section,
  .popular-routes,
  .features-section,
  .super-drivers {
    padding: 40px 0;
  }

  .popular-routes h2 {
    font-size: 1.6rem;
  }

  .daily-text h2,
  .super-drivers-text h2 {
    font-size: 1.5rem;
  }

  .why-choose-section h2,
  .statistics-section h2,
  .testimonials-section h2,
  .faq-section h2,
  .newsletter-content h2 {
    font-size: 1.6rem;
  }

  .statistic-number {
    font-size: 2.5rem;
  }

  .app-download-text h2 {
    font-size: 2rem;
  }
  .devis-stats {
    grid-template-columns: 1fr 1fr;
  }

  .devis-create-btn span {
    display: none;
  }

  .devis-dropdown-menu {
    right: auto;
    left: 0;
    min-width: calc(100vw - 32px);
  }
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

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

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  animation: slideInLeft 0.8s ease forwards;
}

@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  animation: slideInRight 0.8s ease forwards;
}

@keyframes slideInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.loader {
  width: fit-content;
  font-weight: bold;
  font-family: monospace;
  font-size: 30px;
  background: radial-gradient(circle closest-side, #000 94%, #0000)
    right/calc(200% - 1em) 100%;
  animation: l24 1s infinite alternate linear;
}
.loader::before {
  content: "KAIROS";
  line-height: 1em;
  color: #0000;
  background: inherit;
  background-image: radial-gradient(circle closest-side, #fff 94%, #000);
  -webkit-background-clip: text;
  background-clip: text;
}

@keyframes l24 {
  100% {
    background-position: left;
  }
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none; /* caché au début */
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup-box {
  background: white;
  padding: 20px 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  animation: popup-scale 0.3s ease;
}

@keyframes popup-scale {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
#login-keys {
  display: none;
}

.tr-total-mission {
  background: #c8f7d8 !important; /* vert clair */
  font-weight: bold;
  border-top: 2px solid #27ae60;
}

.tr-separator {
  background: #eef1f7;
  font-weight: bold;
  font-size: 14px;
  color: #2c3e50;
}

.tr-separator td {
  padding: 8px 10px;
}

