/* ==========================================================================
   FAQ Animated Demos - CSS Framework
   Composants mockup fideles au design reel EEXPI
   ========================================================================== */

/* === Container principal === */
.faq-demo-container {
  position: relative;
  border: 1px solid rgba(76, 89, 66, 0.15);
  border-radius: 12px;
  overflow: hidden;
  background: #f8f9fa;
  margin: 1.5rem 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* === Barre d'etapes === */
.faq-demo-steps {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0.75rem 1rem;
  background: white;
  border-bottom: 1px solid rgba(76, 89, 66, 0.1);
  overflow-x: auto;
}

.faq-demo-step {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: #adb5bd;
  white-space: nowrap;
  padding: 0.25rem 0.5rem;
  border-radius: 20px;
  transition: all 0.4s ease;
  flex-shrink: 0;
}

.faq-demo-step .step-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: #adb5bd;
  transition: all 0.4s ease;
  flex-shrink: 0;
}

.faq-demo-step.active {
  color: #0C97B1;
  background: rgba(12, 151, 177, 0.08);
}

.faq-demo-step.active .step-dot {
  background: #0C97B1;
  color: white;
}

.faq-demo-step.done {
  color: #2fb344;
}

.faq-demo-step.done .step-dot {
  background: #2fb344;
  color: white;
}

.faq-demo-step-separator {
  width: 16px;
  height: 1px;
  background: #dee2e6;
  flex-shrink: 0;
}

/* === Zone d'animation === */
.faq-demo-screen {
  position: relative;
  height: 360px;
  background: linear-gradient(135deg, #f0f2f5 0%, #e8eaed 100%);
  overflow: hidden;
}

/* === Curseur anime (forme de souris) === */
.faq-demo-cursor {
  position: absolute;
  width: 20px;
  height: 24px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
}

.faq-demo-cursor::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='24' viewBox='0 0 20 24'%3E%3Cpath d='M1 1L1 19L5.5 14.5L9.5 22L12.5 20.5L8.5 13L14.5 13L1 1Z' fill='%230C97B1' stroke='white' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
  transition: transform 0.1s ease;
}

.faq-demo-cursor::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2.5px solid #0C97B1;
  background: rgba(12, 151, 177, 0.15);
  opacity: 0;
  transform: scale(0.3);
  pointer-events: none;
}

.faq-demo-cursor.clicking::before {
  transform: scale(0.85);
}

.faq-demo-cursor.clicking::after {
  animation: cursor-click-ring 0.45s ease-out forwards;
}

@keyframes cursor-click-ring {
  0% { opacity: 0.8; transform: scale(0.4); }
  50% { opacity: 0.5; }
  100% { opacity: 0; transform: scale(1.8); }
}

/* === Bouton FAB (fidele au vrai design) === */
.faq-demo-fab {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #151D33;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
  z-index: 10;
  opacity: 1;
  transition: transform 0.2s, box-shadow 0.2s;
}

.faq-demo-fab svg {
  width: 20px;
  height: 20px;
  color: #DFE160;
  stroke: #DFE160;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

.faq-demo-fab.pulse {
  animation: fab-pulse 1s ease infinite;
}

@keyframes fab-pulse {
  0%, 100% { box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15); }
  50% { box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15), 0 0 0 8px rgba(21, 29, 51, 0.1); }
}

/* === Background mockup (ecran grise de fond) === */
.faq-demo-bg {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}

.faq-demo-bg-header {
  height: 36px;
  background: white;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 8px;
}

.faq-demo-bg-logo {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: #0C97B1;
}

.faq-demo-bg-nav-item {
  width: 40px;
  height: 6px;
  border-radius: 3px;
  background: #e9ecef;
}

.faq-demo-bg-body {
  flex: 1;
  padding: 12px;
  display: flex;
  gap: 8px;
}

.faq-demo-bg-sidebar {
  width: 44px;
  background: white;
  border-radius: 8px;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.faq-demo-bg-sidebar-item {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #f0f2f5;
}

.faq-demo-bg-sidebar-item.active {
  background: rgba(12, 151, 177, 0.15);
}

.faq-demo-bg-content {
  flex: 1;
  background: white;
  border-radius: 8px;
  padding: 10px;
}

.faq-demo-bg-placeholder {
  height: 8px;
  background: #f0f2f5;
  border-radius: 4px;
  margin-bottom: 8px;
}

.faq-demo-bg-placeholder.short { width: 40%; }
.faq-demo-bg-placeholder.medium { width: 65%; }
.faq-demo-bg-placeholder.long { width: 85%; }

/* === Modal mockup (fidele au design quick-time-entry) === */
.faq-demo-modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 300px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
  z-index: 50;
  opacity: 0;
  transition: none;
  overflow: hidden;
}

.faq-demo-modal.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Header avec background gris clair comme le vrai */
.faq-demo-modal-header {
  padding: 10px 14px;
  border-bottom: 1px solid #e6e7e9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
}

.faq-demo-modal-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: #1d273b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.faq-demo-modal-title i,
.faq-demo-modal-title svg {
  color: #0C97B1;
  font-size: 0.85rem;
  width: 14px;
  height: 14px;
}

.faq-demo-modal-close {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: #626976;
  cursor: pointer;
}

/* Body */
.faq-demo-modal-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Footer avec background gris clair comme le vrai */
.faq-demo-modal-footer {
  padding: 10px 14px;
  border-top: 1px solid #e6e7e9;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  background: #f8fafc;
}

/* === Row side-by-side (LM + Mission) === */
.faq-demo-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* === Select / Input mockup === */
.faq-demo-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.faq-demo-label {
  font-size: 0.6rem;
  font-weight: 600;
  color: #626976;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.faq-demo-select {
  height: 28px;
  border: 1px solid #e6e7e9;
  border-radius: 8px;
  padding: 0 8px;
  font-size: 0.65rem;
  color: #adb5bd;
  display: flex;
  align-items: center;
  background: white;
  transition: all 0.3s ease;
  overflow: hidden;
  white-space: nowrap;
}

.faq-demo-select.filled {
  border-color: #0C97B1;
  color: #1d273b;
}

.faq-demo-input {
  height: 28px;
  border: 1px solid #e6e7e9;
  border-radius: 8px;
  padding: 0 8px;
  font-size: 0.65rem;
  color: #adb5bd;
  display: flex;
  align-items: center;
  background: white;
  transition: all 0.3s ease;
}

.faq-demo-input.filled {
  border-color: #0C97B1;
  color: #1d273b;
}

/* === Task cards (radio buttons comme dans le vrai design) === */
.faq-demo-tasks {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.faq-demo-task-card {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border: 1.5px solid #e6e7e9;
  border-radius: 8px;
  background: white;
  transition: all 0.2s ease;
  cursor: pointer;
}

.faq-demo-task-radio {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid #dee2e6;
  flex-shrink: 0;
  transition: all 0.2s ease;
  position: relative;
}

.faq-demo-task-card.active {
  border-color: #0C97B1;
  background: rgba(12, 151, 177, 0.08);
  box-shadow: 0 0 0 2px rgba(12, 151, 177, 0.15);
}

.faq-demo-task-card.active .faq-demo-task-radio {
  border-color: #0C97B1;
  background: #0C97B1;
}

.faq-demo-task-card.active .faq-demo-task-radio::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: white;
}

.faq-demo-task-name {
  font-size: 0.62rem;
  font-weight: 500;
  color: #1d273b;
}

.faq-demo-task-meta {
  font-size: 0.5rem;
  color: #626976;
}

/* === Duration + Checkbox row === */
.faq-demo-duration-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-items: end;
}

/* === Boutons preset duree === */
.faq-demo-presets {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.faq-demo-preset {
  padding: 3px 8px;
  border: 1px solid #e6e7e9;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 500;
  color: #626976;
  background: white;
  transition: all 0.3s ease;
}

.faq-demo-preset.active {
  border-color: #0C97B1;
  background: #CAE7EE;
  color: #0C97B1;
  font-weight: 600;
}

/* === Checkbox mockup === */
.faq-demo-checkbox {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.58rem;
  color: #626976;
}

.faq-demo-checkbox-box {
  width: 13px;
  height: 13px;
  border: 1.5px solid #dee2e6;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.faq-demo-checkbox.checked .faq-demo-checkbox-box {
  background: #0C97B1;
  border-color: #0C97B1;
  color: white;
}

/* === Boutons d'action (fideles au vrai design) === */
.faq-demo-btn {
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 0.65rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.faq-demo-btn-primary {
  background: #0C97B1;
  color: white;
  border: 1px solid #0C97B1;
}

.faq-demo-btn-secondary {
  background: white;
  color: #1d273b;
  border: 1px solid #e6e7e9;
}

.faq-demo-btn.clicked {
  transform: scale(0.95);
  opacity: 0.8;
}

.faq-demo-btn i,
.faq-demo-btn svg {
  font-size: 0.7rem;
  width: 10px;
  height: 10px;
}

/* === Toast succes === */
.faq-demo-toast {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #2fb344;
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(47, 179, 68, 0.3);
  z-index: 60;
  opacity: 0;
  transition: none;
  white-space: nowrap;
}

.faq-demo-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* === Backdrop modal === */
.faq-demo-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
  z-index: 40;
  opacity: 0;
  transition: none;
}

.faq-demo-backdrop.visible {
  opacity: 1;
}

/* === Kanban (vue hebdo - fidele au design time_tracking_week) === */
.faq-demo-kanban {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 8px;
  height: 100%;
}

.faq-demo-column {
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.faq-demo-column.today {
  box-shadow: 0 0 0 2px #0C97B1, 0 4px 12px rgba(12, 151, 177, 0.15);
}

/* Column Header - fidele au vrai design */
.faq-demo-col-header {
  padding: 6px 8px;
  border-bottom: 1px solid rgba(76, 89, 66, 0.1);
  text-align: center;
  background: #fafbf5;
}

/* Today: header avec fond teal plein */
.faq-demo-column.today .faq-demo-col-header {
  background: #0C97B1;
}

.faq-demo-col-day {
  font-size: 0.55rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #4C5942;
  letter-spacing: 0.5px;
}

.faq-demo-column.today .faq-demo-col-day {
  color: rgba(255, 255, 255, 0.8);
}

.faq-demo-col-date {
  font-size: 0.85rem;
  font-weight: 700;
  color: #151D33;
}

.faq-demo-column.today .faq-demo-col-date {
  color: white;
}

.faq-demo-col-hours {
  font-size: 0.5rem;
  font-weight: 600;
  color: #151D33;
  margin-top: 1px;
}

.faq-demo-col-hours span {
  font-weight: 400;
  color: #4C5942;
}

.faq-demo-column.today .faq-demo-col-hours {
  color: white;
}

.faq-demo-column.today .faq-demo-col-hours span {
  color: rgba(255, 255, 255, 0.7);
}

.faq-demo-col-body {
  flex: 1;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* === Entree temps dans le kanban (fidele au vrai .tt-entry) === */
.faq-demo-entry {
  padding: 5px 6px;
  border-radius: 8px;
  background: #fafbf5;
  border-left: 3px solid #0C97B1;
  transition: all 0.3s ease;
}

.faq-demo-entry.internal {
  border-left-color: #4C5942;
}

.faq-demo-entry-client {
  font-size: 0.55rem;
  font-weight: 600;
  color: #151D33;
  display: flex;
  align-items: center;
  gap: 3px;
}

.faq-demo-entry-client .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #0C97B1;
  flex-shrink: 0;
}

.faq-demo-entry-service {
  font-size: 0.48rem;
  color: #4C5942;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.faq-demo-entry-hours {
  font-size: 0.6rem;
  font-weight: 700;
  color: #0C97B1;
  margin-top: 2px;
}

/* Taches non pointees (fidele au vrai .tt-entry.untracked) */
.faq-demo-entry.untracked {
  background: rgba(223, 225, 96, 0.15);
  border: 1px dashed rgba(76, 89, 66, 0.2);
  border-left: 3px solid #DFE160;
}

.faq-demo-entry.untracked .faq-demo-entry-hours {
  background: #DFE160;
  color: #151D33;
  padding: 1px 4px;
  border-radius: 4px;
  font-size: 0.5rem;
  font-weight: 600;
  display: inline-block;
}

.faq-demo-entry.highlight {
  box-shadow: 0 0 0 2px #0C97B1;
  transform: scale(1.03);
}

.faq-demo-entry.dragging {
  opacity: 0.5;
  transform: scale(0.95);
}

.faq-demo-entry.dropping {
  animation: entry-drop 0.3s ease;
}

@keyframes entry-drop {
  0% { opacity: 0; transform: translateY(-8px); }
  100% { opacity: 1; transform: translateY(0); }
}

.faq-demo-entry.converting {
  animation: entry-convert 0.5s ease forwards;
}

@keyframes entry-convert {
  0% { background: rgba(223, 225, 96, 0.15); border-left-color: #DFE160; }
  50% { background: rgba(12, 151, 177, 0.15); }
  100% { background: #fafbf5; border-left-color: #0C97B1; border-style: solid; }
}

/* === Liste d'entrees (pour demo edit) === */
.faq-demo-list {
  position: absolute;
  top: 44px;
  left: 12px;
  right: 12px;
  bottom: 12px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.faq-demo-list-header {
  padding: 10px 12px;
  background: linear-gradient(135deg, rgba(76, 89, 66, 0.02) 0%, rgba(12, 151, 177, 0.05) 100%);
  border-bottom: 1px solid #f0f2f5;
  font-size: 0.72rem;
  font-weight: 600;
  color: #151D33;
  display: flex;
  align-items: center;
  gap: 6px;
}

.faq-demo-list-header i {
  color: #0C97B1;
}

.faq-demo-list-body {
  padding: 4px 0;
}

.faq-demo-list-row {
  display: grid;
  grid-template-columns: 1fr 80px 50px;
  padding: 8px 12px;
  border-bottom: 1px solid #f8f9fa;
  align-items: center;
  transition: background 0.2s;
  cursor: pointer;
}

.faq-demo-list-row:hover,
.faq-demo-list-row.highlight {
  background: rgba(12, 151, 177, 0.04);
}

.faq-demo-list-row-client {
  font-size: 0.65rem;
  font-weight: 600;
  color: #151D33;
}

.faq-demo-list-row-service {
  font-size: 0.55rem;
  color: #4C5942;
}

.faq-demo-list-row-date {
  font-size: 0.58rem;
  color: #4C5942;
  text-align: center;
}

.faq-demo-list-row-hours {
  font-size: 0.7rem;
  font-weight: 700;
  color: #0C97B1;
  text-align: right;
}

.faq-demo-list-row-hours.updated {
  animation: hours-flash 0.5s ease;
}

@keyframes hours-flash {
  0% { color: #0C97B1; }
  30% { color: #2fb344; transform: scale(1.2); }
  100% { color: #0C97B1; transform: scale(1); }
}

/* === Separator (comme .qte-separator) === */
.faq-demo-separator {
  height: 1px;
  background: #e6e7e9;
}

/* === Badges (status pills) === */
.faq-demo-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.55rem;
  font-weight: 600;
  white-space: nowrap;
}

.faq-demo-badge.prospect {
  background: rgba(223, 225, 96, 0.25);
  color: #6B7763;
}

.faq-demo-badge.client {
  background: rgba(12, 151, 177, 0.15);
  color: #0C97B1;
}

.faq-demo-badge.success {
  background: rgba(47, 179, 68, 0.15);
  color: #2fb344;
}

.faq-demo-badge.error {
  background: rgba(214, 57, 57, 0.12);
  color: #d63939;
}

.faq-demo-badge.signed {
  background: rgba(76, 89, 66, 0.12);
  color: #4C5942;
}

.faq-demo-badge.updated {
  background: rgba(12, 151, 177, 0.15);
  color: #0C97B1;
}

/* === Devis line items === */
.faq-demo-line-items {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.faq-demo-line-item {
  display: grid;
  grid-template-columns: 1fr 30px 45px;
  gap: 4px;
  padding: 5px 8px;
  background: #fafbf5;
  border-radius: 6px;
  border-left: 2px solid #0C97B1;
  font-size: 0.58rem;
  align-items: center;
}

.faq-demo-line-item-name {
  font-weight: 500;
  color: #1d273b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.faq-demo-line-item-qty {
  color: #626976;
  text-align: center;
}

.faq-demo-line-item-price {
  font-weight: 600;
  color: #0C97B1;
  text-align: right;
}

.faq-demo-total-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 8px;
  border-top: 1.5px solid #151D33;
  margin-top: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  color: #151D33;
}

/* === Upload zone === */
.faq-demo-upload-zone {
  border: 2px dashed #dee2e6;
  border-radius: 8px;
  padding: 14px 8px;
  text-align: center;
  color: #adb5bd;
  font-size: 0.6rem;
  transition: all 0.3s ease;
}

.faq-demo-upload-zone .upload-icon {
  font-size: 1.2rem;
  margin-bottom: 4px;
  display: block;
}

.faq-demo-upload-zone.filled {
  border-color: #0C97B1;
  border-style: solid;
  color: #1d273b;
  background: rgba(12, 151, 177, 0.04);
}

/* === Preview table (import) === */
.faq-demo-preview-table {
  width: 100%;
  font-size: 0.55rem;
  border-collapse: collapse;
}

.faq-demo-preview-table th {
  background: #f8fafc;
  padding: 4px 6px;
  font-weight: 600;
  color: #626976;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-size: 0.5rem;
  border-bottom: 1px solid #e6e7e9;
}

.faq-demo-preview-table td {
  padding: 4px 6px;
  color: #1d273b;
  border-bottom: 1px solid #f0f2f5;
}

.faq-demo-preview-table tr.error td {
  background: rgba(214, 57, 57, 0.04);
}

/* === CRM card (prospect dans kanban) === */
.faq-demo-crm-card {
  padding: 6px 8px;
  background: white;
  border-radius: 8px;
  border: 1px solid rgba(76, 89, 66, 0.1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.faq-demo-crm-card-name {
  font-size: 0.6rem;
  font-weight: 600;
  color: #151D33;
}

.faq-demo-crm-card-value {
  font-size: 0.5rem;
  color: #0C97B1;
  font-weight: 600;
  margin-top: 2px;
}

.faq-demo-crm-card-action {
  font-size: 0.48rem;
  color: #626976;
  margin-top: 2px;
}

.faq-demo-crm-card.highlight {
  box-shadow: 0 0 0 2px #0C97B1;
  transform: scale(1.03);
}

/* === Context menu (mini floating menu) === */
.faq-demo-context-menu {
  position: absolute;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  padding: 4px 0;
  z-index: 55;
  opacity: 0;
  transform: scale(0.9);
  transition: none;
  min-width: 100px;
}

.faq-demo-context-menu.visible {
  opacity: 1;
  transform: scale(1);
}

.faq-demo-context-menu-item {
  padding: 5px 10px;
  font-size: 0.58rem;
  color: #1d273b;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: background 0.15s;
}

.faq-demo-context-menu-item:hover,
.faq-demo-context-menu-item.highlight {
  background: rgba(12, 151, 177, 0.06);
}

.faq-demo-context-menu-item i {
  color: #626976;
  font-size: 0.6rem;
}

/* === Kanban 4 colonnes (pour CRM pipeline) === */
.faq-demo-kanban.four-cols {
  grid-template-columns: repeat(4, 1fr);
}

/* === Helpers === */
.faq-demo-search-icon {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: #adb5bd;
}

.faq-demo-modal.wide {
  width: 340px;
}

.faq-demo-btn-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.6rem;
  font-weight: 500;
  background: #0C97B1;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
}

.faq-demo-btn-inline.highlight {
  box-shadow: 0 0 0 2px rgba(12, 151, 177, 0.4);
  transform: scale(1.05);
}

/* === List row with checkbox variant === */
.faq-demo-list-row.with-check {
  grid-template-columns: 20px 1fr 80px 50px;
}

/* === Dashboard widgets === */
.faq-demo-dashboard {
  position: absolute;
  top: 10px;
  left: 12px;
  right: 12px;
  bottom: 12px;
}

.faq-demo-dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.faq-demo-widget-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.faq-demo-widget {
  background: white;
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  border: 1px solid #f0f2f5;
  transition: all 0.3s ease;
}

.faq-demo-widget.highlight {
  box-shadow: 0 0 0 2px #0C97B1;
}

.faq-demo-widget-title {
  font-size: 0.55rem;
  font-weight: 600;
  color: #626976;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.faq-demo-widget-value {
  font-size: 1rem;
  font-weight: 700;
  color: #151D33;
  line-height: 1.2;
}

.faq-demo-widget-trend {
  font-size: 0.48rem;
  margin-top: 2px;
}

.faq-demo-widget-trend.up {
  color: #2fb344;
}

.faq-demo-widget-trend.down {
  color: #d63939;
}

.faq-demo-widget-detail {
  font-size: 0.48rem;
  color: #626976;
  margin-top: 2px;
}

.faq-demo-widget-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  font-size: 0.6rem;
  color: #1d273b;
}

.faq-demo-widget-order {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.faq-demo-widget-order-item {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 6px;
  background: #f8f9fa;
  border-radius: 6px;
  font-size: 0.58rem;
  color: #1d273b;
  transition: all 0.3s ease;
}

.faq-demo-widget-order-item.highlight {
  background: rgba(12, 151, 177, 0.08);
  box-shadow: 0 0 0 1.5px #0C97B1;
}

/* === Responsive === */
@media (max-width: 768px) {
  .faq-demo-screen {
    height: 300px;
  }

  .faq-demo-kanban {
    grid-template-columns: repeat(3, 1fr);
  }

  .faq-demo-column:nth-child(n+4) {
    display: none;
  }

  .faq-demo-steps {
    padding: 0.5rem 0.75rem;
  }

  .faq-demo-step {
    font-size: 0.65rem;
    padding: 0.2rem 0.35rem;
  }

  .faq-demo-modal {
    width: 240px;
  }

  .faq-demo-modal.wide {
    width: 260px;
  }

  .faq-demo-bg-sidebar {
    display: none;
  }

  .faq-demo-kanban.four-cols {
    grid-template-columns: repeat(3, 1fr);
  }

  .faq-demo-kanban.four-cols .faq-demo-column:nth-child(4) {
    display: none;
  }
}

@media (max-width: 480px) {
  .faq-demo-screen {
    height: 260px;
  }

  .faq-demo-step span:not(.step-dot) {
    display: none;
  }

  .faq-demo-kanban {
    grid-template-columns: repeat(2, 1fr);
  }

  .faq-demo-column:nth-child(n+3) {
    display: none;
  }

  .faq-demo-form-row {
    grid-template-columns: 1fr;
  }

  .faq-demo-kanban.four-cols {
    grid-template-columns: repeat(2, 1fr);
  }

  .faq-demo-kanban.four-cols .faq-demo-column:nth-child(n+3) {
    display: none;
  }
}
