@charset "UTF-8";
:root {
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-light: #6366f1;
  --secondary: #64748b;
  --cyan: #06b6d4;
  --cyan-light: #22d3ee;
  --purple: #a855f7;
  --orange: #f97316;
  --red: #ef4444;
  --success: #10b981;
  --warning: #f59e0b;
  --info: #0891b2;
  --light: #f8fafc;
  --dark: #1e293b;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.12);
  --shadow-md: 0 4px 6px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 10px 15px rgba(15, 23, 42, 0.12);
  --shadow-xl: 0 20px 25px rgba(15, 23, 42, 0.15);
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --border-radius-sm: 0.375rem;
  --border-radius: 0.5rem;
  --border-radius-lg: 0.75rem;
  --border-radius-xl: 1rem;
  --border-radius-2xl: 1.5rem;
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-sidebar: 1020;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-tooltip: 1070;
  --z-topbar: 1200;
  --z-navbar: 2050;
  --primary-color: var(--primary);
  --secondary-color: var(--secondary);
  --success-color: var(--success);
  --warning-color: var(--warning);
  --danger-color: #dc2626;
  --info-color: var(--info);
  --light-color: var(--light);
  --dark-color: var(--dark);
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --gradient-warning: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  --shadow: var(--shadow-sm);
}

/* Dialog de confirmation suppression */
.delete-confirmation-dialog {
  border: none;
  border-radius: var(--radius-xl);
  padding: 0;
  max-width: 480px;
  width: 90%;
  box-shadow: 0 25px 60px -28px rgba(15, 23, 42, 0.45);
  background: var(--bg-primary);
  color: var(--text-primary);
}

.delete-confirmation-dialog::backdrop {
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
}

.delete-confirmation-dialog[open] {
  animation: fadeIn 0.2s ease-out;
}

.delete-confirmation-dialog[closing] {
  animation: fadeOut 0.2s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
}
.modal-content {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: var(--bg-primary);
}

.modal-header,
.modal-footer {
  padding: var(--space-4) var(--space-5);
  border: none;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(79, 70, 229, 0.08);
  color: var(--text-primary);
}

.modal-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.modal-body {
  padding: var(--space-5);
  color: var(--text-secondary);
}

.modal-footer {
  display: flex;
  gap: var(--space-3);
  justify-content: flex-end;
  background: var(--bg-primary);
}

.pulse-animation {
  animation: pulse 2s infinite;
  box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(79, 70, 229, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(79, 70, 229, 0);
  }
}
/* Mise en page générale */
.five-why-main {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: calc(100vh - 76px);
  padding: var(--space-6) clamp(var(--space-4), 3vw, var(--space-6)) var(--space-12);
  padding-top: max(6.75rem, var(--space-6) + 4.5rem);
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  color: var(--text-primary);
}

.five-why-main--guest {
  padding-top: max(7.5rem, var(--space-8) + 5rem);
}

.five-why-main .container {
  width: min(1080px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.five-why-header {
  text-align: center;
  margin: 0 auto;
  max-width: 760px;
  padding: var(--space-1) 0 var(--space-3);
}
.five-why-header h1 {
  font-size: clamp(1.9rem, 2.6vw, 2.6rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}
.five-why-header .lead {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

.five-why-controls {
  background: var(--bg-primary);
  border-radius: var(--radius-2xl);
  padding: var(--space-4) var(--space-5);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  position: relative;
  z-index: 2;
}

.five-why-controls .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0.65rem 1.4rem !important;
  border-radius: 999px !important;
  border: none;
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 14px 28px -18px rgba(15, 23, 42, 0.35);
  font-size: 0.95rem;
}

.five-why-controls .btn:focus-visible {
  outline: 3px solid rgba(79, 70, 229, 0.35);
  outline-offset: 2px;
}

.five-why-controls .btn-primary,
.why-actions .why-add-btn,
.root-cause-trigger .root-cause-btn:not(:disabled) {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%) !important;
  color: #fff !important;
}

.five-why-controls .btn-secondary {
  background: linear-gradient(135deg, #a855f7 0%, #6366f1 100%) !important;
  color: #fff !important;
}

.five-why-controls .btn-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #fff !important;
}

.five-why-controls .btn-info {
  background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%) !important;
  color: #fff !important;
}

.five-why-controls .btn:hover:not(:disabled),
.why-actions .why-add-btn:hover:not(:disabled),
.root-cause-trigger .root-cause-btn:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -20px rgba(37, 99, 235, 0.45);
}

.five-why-controls .dropdown-menu {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.15);
  padding: var(--space-2) 0;
  z-index: 2050;
}

.five-why-controls .dropdown-item {
  padding: var(--space-3) var(--space-5);
  font-weight: 500;
  color: var(--text-primary);
}

.five-why-controls .dropdown-item:hover {
  background: rgba(79, 70, 229, 0.08);
  color: var(--primary);
}

.five-why-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.guide-card {
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(148, 163, 184, 0.18);
  padding: var(--space-5);
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(14, 165, 233, 0.1) 100%);
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.guide-card__title {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.guide-card__list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.guide-card__list li {
  position: relative;
  padding-left: var(--space-5);
}

.guide-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  transform: translateY(-50%);
}

.alert-warning {
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: var(--space-5);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.18) 0%, rgba(245, 158, 11, 0.12) 100%);
  color: #854d0e;
}

.alert-warning strong {
  color: #b45309;
}

.problem-statement,
.why-step,
.root-cause,
.root-cause-trigger {
  background: var(--bg-primary);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  padding: var(--space-5);
  position: relative;
}

.problem-statement::before,
.why-step::before,
.root-cause::before {
  content: "";
  position: absolute;
  inset: var(--space-4);
  border-radius: var(--radius-xl);
  border: 1px dashed rgba(148, 163, 184, 0.2);
  pointer-events: none;
}

.problem-statement h3,
.root-cause h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-4);
  color: var(--text-primary);
}

.problem-statement input,
.why-content input,
.why-content textarea {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.3);
  padding: 0.85rem 1rem;
  font-size: 0.975rem;
  background: rgba(248, 250, 252, 0.95);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  color: var(--text-primary);
}

.problem-statement input:focus,
.why-content input:focus,
.why-content textarea:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
  outline: none;
}

.problem-statement small {
  color: var(--text-muted);
}

.why-chain {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.why-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-4);
  padding-right: var(--space-6);
}

.why-step::before {
  inset: var(--space-4) var(--space-5) var(--space-4) calc(var(--space-5) + 6px);
}

.why-number {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  position: relative;
  z-index: 1;
}

.why-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.why-question,
.why-answer {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.why-question label,
.why-answer label {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.why-content textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

.why-actions {
  margin-top: var(--space-2);
  display: flex;
  justify-content: flex-start;
}

.why-actions .why-add-btn {
  align-self: flex-start;
  border: none;
  min-width: 240px;
}

.why-actions .why-add-btn.btn-secondary {
  background: linear-gradient(135deg, rgba(148, 163, 184, 0.08), rgba(148, 163, 184, 0.2)) !important;
  color: var(--text-muted) !important;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.85;
}

.why-actions .why-add-btn:disabled {
  pointer-events: none;
}

.remove-step-btn {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: none;
  background: rgba(248, 113, 113, 0.12);
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.remove-step-btn:hover {
  background: rgba(248, 113, 113, 0.22);
  transform: translateY(-1px);
}

.remove-step-btn i {
  font-size: 0.9rem;
}

.root-cause-trigger {
  display: none;
  flex-direction: column;
  gap: var(--space-3);
  text-align: center;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(14, 165, 233, 0.12) 100%);
}

.root-cause-trigger[data-visible=true] {
  display: flex;
}

.root-cause-trigger .root-cause-btn {
  min-width: 260px;
  justify-content: center;
}

.root-cause-trigger .root-cause-btn:disabled {
  background: linear-gradient(135deg, rgba(226, 232, 240, 0.9), rgba(203, 213, 225, 0.95));
  color: var(--text-muted);
  box-shadow: none;
}

.root-cause-helper {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.root-cause {
  display: none;
  flex-direction: column;
  gap: var(--space-3);
}

.root-cause[style*="display: block"],
.root-cause.is-visible {
  display: flex !important;
}

.root-cause p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Formulaire et focus */
input:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(79, 70, 229, 0.35);
  outline-offset: 2px;
}

/* Responsive */
@media (max-width: 992px) {
  .five-why-main {
    padding: var(--space-6) clamp(var(--space-3), 4vw, var(--space-5)) var(--space-10);
    padding-top: max(6.75rem, var(--space-6) + 4.75rem);
  }
  .five-why-controls {
    align-items: stretch;
    justify-content: flex-start;
  }
}
@media (max-width: 768px) {
  .five-why-main .container {
    gap: var(--space-4);
  }
  .five-why-controls {
    padding: var(--space-4);
  }
  .five-why-controls .btn {
    width: 100%;
    justify-content: center;
  }
  .five-why-controls .dropdown {
    width: 100%;
  }
  .five-why-controls .dropdown-menu {
    width: 100%;
  }
  .why-step {
    grid-template-columns: 1fr;
    padding-right: var(--space-4);
  }
  .why-step::before {
    inset: var(--space-4);
  }
  .why-number {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
  .remove-step-btn {
    top: var(--space-3);
    right: var(--space-3);
  }
  .why-actions .why-add-btn {
    width: 100%;
    min-width: 0;
  }
}
@media (max-width: 576px) {
  .five-why-main {
    padding: var(--space-5) var(--space-3) var(--space-8);
    padding-top: max(6.75rem, var(--space-6) + 5rem);
  }
  .five-why-controls {
    border-radius: var(--radius-xl);
  }
  .problem-statement,
  .why-step,
  .root-cause,
  .root-cause-trigger {
    border-radius: var(--radius-xl);
    padding: var(--space-4);
  }
}

/*# sourceMappingURL=five-why.output.css.map */
