/**
 * Help & Documentation Stylesheet - Planning Web V2
 * 
 * Design system de la documentation :
 * - Layout adaptatif 2 colonnes (sommaire collé à gauche)
 * - Accordéons fluides à transitions micro-animées
 * - Fiches RACI et kbd à fort contraste
 * - Flous d'arrière-plan de qualité supérieure (Glassmorphism)
 */

.help-page {
  background: radial-gradient(circle at top left, #1e1b4b 0%, #0f172a 60%);
  color: #f8fafc;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.help-page .app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header style modifications for help */
.help-page .app-header {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(15, 23, 42, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 24px;
}

.help-page .header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.help-page .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #f8fafc;
  font-weight: 800;
  font-size: 1.25rem;
}

.help-page .logo-icon {
  font-size: 1.5rem;
}

.help-page .header-nav ul {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.help-page .nav-link {
  color: #94a3b8;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.help-page .nav-link:hover, 
.help-page .nav-link.active {
  color: #ffffff;
}

.help-page .user-menu {
  display: flex;
  align-items: center;
  gap: 16px;
}

.help-page .user-name {
  color: #cbd5e1;
  font-size: 0.9rem;
}

.back-dashboard-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.back-dashboard-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

/* Layout */
.help-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 24px;
  width: 100%;
  align-items: start;
}

/* Sidebar navigation style */
.help-sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-sticky {
  background: rgba(30, 41, 59, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.help-sidebar h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-tab-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 16px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  width: 100%;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-tab-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #f8fafc;
}

.sidebar-tab-btn.active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2) 0%, rgba(37, 99, 235, 0.05) 100%);
  color: #60a5fa;
  border: 1px solid rgba(37, 99, 235, 0.3);
  box-shadow: inset 0 0 12px rgba(37, 99, 235, 0.1);
}

.tab-icon {
  font-size: 1.15rem;
}

.w-100 {
  width: 100%;
}

.button-accent {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25);
  transition: all 0.2s ease;
}

.button-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* Content Panel */
.help-content-panel {
  background: rgba(30, 41, 59, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.panel-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 24px;
  margin-bottom: 32px;
}

.panel-header h1 {
  font-size: 2.2rem;
  font-weight: 900;
  background: linear-gradient(to right, #f8fafc, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}

.panel-subtitle {
  color: #94a3b8;
  font-size: 1.1rem;
}

.content-block {
  margin-bottom: 40px;
}

.content-block h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #f1f5f9;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.content-block p {
  color: #cbd5e1;
  line-height: 1.7;
  font-size: 1.05rem;
  margin-bottom: 20px;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.feature-card {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(96, 165, 250, 0.2);
  background: rgba(15, 23, 42, 0.6);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #f8fafc;
}

.feature-card p {
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0;
}

/* Card Mockup Demo */
.card-demo {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  width: 100%;
  max-width: 460px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  margin: 20px 0;
}

.demo-card-color {
  height: 8px;
  background: #3b82f6;
}

.demo-card-body {
  padding: 24px;
}

.demo-card-title {
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.demo-card-desc {
  font-size: 0.9rem;
  color: #94a3b8;
  margin-bottom: 20px;
}

.demo-card-meta {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  color: #cbd5e1;
  margin-bottom: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 16px;
}

.demo-card-actions {
  display: flex;
  gap: 10px;
}

.btn-mock {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-mock-primary {
  background: #2563eb;
  border-color: #2563eb;
}

.btn-mock-danger {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

/* RACI Matrice layout */
.raci-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.raci-card {
  border-radius: 14px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

.raci-badge {
  font-size: 1.5rem;
  font-weight: 900;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  margin-bottom: 20px;
}

.raci-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.raci-card p {
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin: 0;
}

/* RACI Color variations */
.r-card {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.2);
}
.r-card .raci-badge {
  background: rgba(37, 99, 235, 0.2);
  color: #60a5fa;
}

.a-card {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.2);
}
.a-card .raci-badge {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.c-card {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.2);
}
.c-card .raci-badge {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.i-card {
  background: rgba(14, 165, 233, 0.08);
  border-color: rgba(14, 165, 233, 0.2);
}
.i-card .raci-badge {
  background: rgba(14, 165, 233, 0.2);
  color: #38bdf8;
}

/* Steps list */
.step-list {
  padding-left: 20px;
}

.step-list li {
  color: #cbd5e1;
  margin-bottom: 16px;
  line-height: 1.6;
}

.step-list strong {
  color: #60a5fa;
}

/* File format section */
.file-actions-highlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 24px;
  margin: 24px 0;
}

.highlight-item {
  display: flex;
  gap: 16px;
}

.highlight-item .icon {
  font-size: 2.2rem;
}

.highlight-item h4 {
  margin: 0 0 6px 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.highlight-item p {
  margin: 0;
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.4;
}

.code-preview {
  background: #090d16 !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  overflow-x: auto;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.9rem;
  color: #e2e8f0;
  line-height: 1.5;
}

/* Table */
.shortcuts-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.shortcuts-table th, 
.shortcuts-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.shortcuts-table th {
  font-weight: 800;
  color: #94a3b8;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.shortcuts-table td {
  color: #cbd5e1;
}

kbd {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.5);
  color: #ffffff;
  display: inline-block;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1;
  padding: 4px 8px;
  white-space: nowrap;
}

.info-alert {
  background: rgba(96, 165, 250, 0.08);
  border-left: 4px solid #3b82f6;
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin-top: 24px;
  color: #cbd5e1;
}

/* Accordion */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.accordion-item {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.accordion-item:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.accordion-header {
  background: transparent;
  border: none;
  color: #f1f5f9;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 18px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-align: left;
}

.accordion-header .arrow {
  font-size: 0.8rem;
  color: #64748b;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-header.active .arrow {
  transform: rotate(180deg);
  color: #60a5fa;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-content p {
  padding: 0 24px 20px 24px;
  margin: 0;
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.6;
}

/* Support Card */
.support-card {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(14, 165, 233, 0.1) 100%);
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 12px;
  padding: 24px;
  margin-top: 24px;
}

.support-card h4 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 12px 0;
  color: #f8fafc;
}

.support-card p {
  margin: 0 0 8px 0;
  font-size: 0.95rem;
  color: #cbd5e1;
}

.support-card a {
  color: #60a5fa;
  text-decoration: none;
  font-weight: 700;
}

.support-card a:hover {
  text-decoration: underline;
}

/* Footer override */
.help-page .app-footer {
  background: rgba(15, 23, 42, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 24px;
  text-align: center;
  font-size: 0.85rem;
  color: #94a3b8;
}

/* Responsiveness */
@media (max-width: 900px) {
  .help-layout {
    grid-template-columns: 1fr;
    margin: 20px auto;
  }
  
  .help-sidebar {
    position: static;
  }
  
  .help-content-panel {
    padding: 24px;
  }
  
  .panel-header h1 {
    font-size: 1.8rem;
  }
  
  .file-actions-highlight {
    grid-template-columns: 1fr;
  }
}
