/* ================================================================
   CSS DASHBOARD LIFECRAFTER - COPIE EXACTE DE TON-ATELIER.CSS
   ================================================================ */

/* ================================================================
   VARIABLES CSS - IDENTIQUES À TON-ATELIER
   ================================================================ */
.tedcraft-custom-page.dashboard-page {
  /* Couleurs exactes */
  --sage-50: #f9f8f6;
  --sage-100: #f4f2ee;
  --sage-200: #ede8e0;
  --sage-300: #d8cfc2;
  --sage-400: #566c40;
  --sage-500: #566c40;
  --sage-600: #566c40;
  --sage-700: #4a5b37;
  --sage-800: #4a5b37;

  --stone-50: #fdfcfa;
  --stone-100: #f7f5f2;
  --stone-200: #efebe6;
  --stone-300: #e2ddd6;
  --stone-400: #c4bab0;
  --stone-500: #8f8075;
  --stone-600: #6b5d52;
  --stone-700: #544840;
  --stone-800: #3d322a;
  --stone-900: #1c1917;

  --copper-400: #d4965a;
  --copper-500: #c08552;
  --copper-600: #a67247;

  --brand-olive-100: #f0f4ed;
  --brand-olive-200: #dce5d3;
  --brand-olive-700: #6b7c5a;
  --brand-olive-800: #5a6b4a;

  /* Typographie */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;

  /* Espacements */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-7: 1.75rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;

  /* Ombres */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* ================================================================
   LAYOUT PRINCIPAL - FULL WIDTH
   ================================================================ */

.tedcraft-custom-page.dashboard-page {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  background: var(--stone-50);
  font-family: var(--font-sans);
  color: var(--stone-800);
  line-height: 1.6;
}

.tc-dashboard-wrapper {
  display: flex;
  min-height: 100vh;
  width: 100%;
  position: relative;
  background: var(--stone-50);
}

/* ================================================================
   SIDEBAR - COPIE EXACTE DE COACHING-SIDEBAR
   ================================================================ */

.tc-dashboard-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 280px;
  height: 100vh;
  background-color: white;
  border-right: 1px solid var(--stone-200);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow: hidden;
  transition: transform 0.3s ease;
}

/* Header de la sidebar */
.tc-sidebar-header {
  padding: var(--space-6) var(--space-4);
  border-bottom: 1px solid var(--stone-200);
  flex-shrink: 0;
}

.tc-user-profile {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.tc-user-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sage-500), var(--sage-600));
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.tc-avatar-initials {
  color: white;
  font-weight: 600;
  font-size: 1.125rem;
}

.tc-user-info {
  flex: 1;
  min-width: 0;
}

.tc-user-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--stone-900);
  margin: 0 0 0.25rem 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tc-user-status {
  font-size: 0.875rem;
  color: var(--stone-600);
}

/* Navigation sidebar - COPIE EXACTE */
.tc-sidebar-nav {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
  overflow-y: auto;
}

/* Nav items simples */
.tc-nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: 8px;
  text-decoration: none;
  color: var(--stone-700);
  transition: all 0.2s;
  cursor: pointer;
}

.tc-nav-item:hover {
  background-color: var(--stone-100);
  color: var(--brand-olive-700);
}

.tc-nav-item.active {
  background-color: var(--brand-olive-100);
  color: var(--brand-olive-800);
  font-weight: 600;
}

.tc-nav-item .material-symbols-outlined {
  font-size: 1.25rem;
  flex-shrink: 0;
  color: var(--stone-600);
}

.tc-nav-item.active .material-symbols-outlined {
  color: var(--brand-olive-700);
}

.tc-nav-label {
  font-size: 0.9375rem;
  line-height: 1.4;
  flex: 1;
}

/* Nav groups (collapsible) */
.tc-nav-group {
  margin: var(--space-2) 0;
}

.tc-nav-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: 8px;
  color: var(--stone-600);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tc-nav-header:hover {
  background-color: var(--stone-100);
  color: var(--brand-olive-700);
}

.tc-nav-header .material-symbols-outlined {
  font-size: 1.125rem;
}

.tc-nav-toggle {
  margin-left: auto;
  transition: transform 0.3s ease;
  font-size: 1.25rem;
}

.tc-nav-group.expanded .tc-nav-toggle {
  transform: rotate(180deg);
}

.tc-nav-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding-left: var(--space-4);
}

.tc-nav-group.expanded .tc-nav-content {
  max-height: 1000px;
}

/* Footer sidebar */
.tc-sidebar-footer {
  padding: var(--space-4);
  border-top: 1px solid var(--stone-200);
  background: var(--stone-50);
  flex-shrink: 0;
}

.tc-sidebar-action {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: white;
  border: 1px solid var(--stone-300);
  border-radius: 8px;
  color: var(--stone-700);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.tc-sidebar-action:hover {
  background-color: var(--stone-100);
  border-color: var(--sage-400);
  color: var(--sage-700);
}

.tc-sidebar-action .material-symbols-outlined {
  font-size: 1.125rem;
}

/* Overlay mobile */
.tc-sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 99;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.tc-sidebar-overlay.active {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

/* ================================================================
   MAIN CONTENT - COPIE EXACTE DE COACHING-MAIN
   ================================================================ */

.tc-dashboard-main {
  margin-left: 280px;
  flex: 1;
  padding: var(--space-8);
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* Header mobile */
.tc-dashboard-header {
  display: none;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-6);
  background: white;
  border-bottom: 1px solid var(--stone-200);
  margin: calc(var(--space-8) * -1) calc(var(--space-8) * -1) var(--space-6);
  position: sticky;
  top: 0;
  z-index: 50;
}

.tc-btn-toggle-sidebar,
.tc-btn-refresh {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 1px solid var(--stone-300);
  border-radius: 8px;
  color: var(--stone-700);
  cursor: pointer;
  transition: all 0.2s;
}

.tc-btn-toggle-sidebar:hover,
.tc-btn-refresh:hover {
  background-color: var(--stone-100);
  border-color: var(--sage-400);
  color: var(--sage-700);
}

.tc-page-title {
  flex: 1;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--stone-800);
  margin: 0;
}

/* ================================================================
   LOADING & ERROR STATES
   ================================================================ */

.tc-dashboard-loading,
.tc-dashboard-error {
  padding: var(--space-12) var(--space-6);
  text-align: center;
}

.dashboard-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--stone-200);
  border-top-color: var(--sage-500);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto var(--space-4);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

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

.tc-body-lg {
  font-size: 1.125rem;
  color: var(--stone-600);
}

.tc-mt-4 {
  margin-top: var(--space-4);
}

.tc-mt-6 {
  margin-top: var(--space-6);
}

.tc-card {
  background: white;
  border-radius: 16px;
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--stone-200);
}

.tc-card-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-6);
  background: var(--stone-100);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--stone-500);
}

.tc-card-icon.error-icon {
  background: #fee2e2;
  color: #dc2626;
}

.tc-card-icon .material-symbols-outlined {
  font-size: 2rem;
}

.tc-card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--stone-800);
  margin: 0 0 var(--space-3);
}

.tc-card-text {
  font-size: 1rem;
  color: var(--stone-600);
  margin: 0;
  line-height: 1.6;
}

.tc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.tc-button-primary {
  background: linear-gradient(135deg, var(--sage-500), var(--sage-600));
  color: white;
  box-shadow: 0 3px 8px rgba(107, 124, 90, 0.25);
}

.tc-button-primary:hover {
  background: linear-gradient(135deg, var(--sage-600), var(--sage-700));
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(107, 124, 90, 0.35);
}

.tc-cta-container {
  display: flex;
  justify-content: center;
  margin-top: var(--space-6);
}

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

.tc-dashboard-content {
  width: 100%;
}

.tc-content-section {
  display: none;
}

.tc-content-section.active {
  display: block;
}

.tc-section {
  padding: var(--space-8) 0;
}

.tc-section.tc-bg-white {
  background: white;
  margin: 0 calc(var(--space-8) * -1);
  padding: var(--space-8);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--stone-200);
  margin-bottom: var(--space-8);
}

.tc-section.tc-bg-cream {
  background: var(--stone-50);
  margin-bottom: var(--space-8);
}

.tc-container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.tc-section-header {
  margin-bottom: var(--space-6);
}

.tc-title-1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--stone-900);
  margin: 0 0 var(--space-2);
  line-height: 1.2;
}

/* ================================================================
   MÉTRIQUES GLOBALES
   ================================================================ */

.dashboard-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-6);
}

.dashboard-metric-card {
  background: linear-gradient(135deg, white 0%, var(--sage-50) 100%);
  border-radius: 16px;
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--stone-200);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  position: relative;
  overflow: hidden;
}

.dashboard-metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(135deg, var(--sage-500), var(--copper-500));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.dashboard-metric-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.dashboard-metric-card:hover::before {
  opacity: 1;
}

.metric-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--sage-100), var(--sage-50));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage-700);
  flex-shrink: 0;
}

.metric-icon .material-symbols-outlined {
  font-size: 1.75rem;
}

.metric-content {
  flex: 1;
  min-width: 0;
}

.metric-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--stone-600);
  margin: 0 0 var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metric-value {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--stone-900);
  line-height: 1;
  margin-bottom: var(--space-1);
}

.metric-subtitle {
  font-size: 0.875rem;
  color: var(--stone-500);
}

.metric-visual {
  flex-shrink: 0;
}

/* Progress Ring */
.progress-ring {
  position: relative;
  width: 60px;
  height: 60px;
}

.progress-ring svg {
  transform: rotate(-90deg);
}

.progress-ring-bg {
  fill: none;
  stroke: var(--stone-200);
  stroke-width: 4;
}

.progress-ring-fill {
  fill: none;
  stroke: var(--sage-600);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 157;
  stroke-dashoffset: 157;
  transition: stroke-dashoffset 0.6s ease;
}

.progress-ring-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--stone-900);
}

/* ================================================================
   ACTIONS RECOMMANDÉES
   ================================================================ */

.dashboard-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-6);
}

.dashboard-action-card {
  background: linear-gradient(135deg, white 0%, var(--sage-50) 100%);
  border-radius: 16px;
  padding: var(--space-7);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--stone-200);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.dashboard-action-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--sage-500), var(--copper-500));
  transform: translateX(-100%);
  transition: transform 0.4s ease;
}

.dashboard-action-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--sage-300);
}

.dashboard-action-card:hover::before {
  transform: translateX(0);
}

.action-card-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.action-card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--sage-100), var(--sage-50));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage-700);
  flex-shrink: 0;
}

.action-card-icon .material-symbols-outlined {
  font-size: 1.5rem;
}

.action-card-content {
  flex: 1;
}

/* ================================================================
   DETAIL WRAPPER (section détail)
   ================================================================ */

.tc-detail-wrapper {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

#detail-container {
  width: 100%;
}

/* ================================================================
   RESPONSIVE - MOBILE & TABLET
   ================================================================ */

@media (max-width: 1024px) {
  .tc-dashboard-sidebar {
    transform: translateX(-100%);
  }

  .tc-dashboard-sidebar.active {
    transform: translateX(0);
  }

  .tc-dashboard-main {
    margin-left: 0;
    padding: var(--space-6);
  }

  .tc-dashboard-header {
    display: flex;
  }

  .tc-section.tc-bg-white {
    margin: 0 calc(var(--space-6) * -1);
    padding: var(--space-6);
  }
}

@media (max-width: 768px) {
  .tc-dashboard-main {
    padding: var(--space-4);
  }

  .dashboard-metrics-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .dashboard-actions-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .metric-value {
    font-size: 1.5rem;
  }

  .tc-title-1 {
    font-size: 1.5rem;
  }

  .tc-section.tc-bg-white {
    margin: 0 calc(var(--space-4) * -1);
    padding: var(--space-4);
  }
}

/* ================================================================
   ANIMATIONS
   ================================================================ */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ================================================================
   ACTION CARDS - TITRE ET DESCRIPTION
   ================================================================ */

.action-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--stone-900);
  margin: 0 0 var(--space-2);
  line-height: 1.3;
}

.action-card-description {
  font-size: 0.875rem;
  color: var(--stone-600);
  margin: 0;
  line-height: 1.5;
}

/* ================================================================
   DETAIL VIEW - TOUS LES ÉLÉMENTS
   ================================================================ */

.tc-detail-wrapper {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.tc-detail-header-enhanced {
  background: linear-gradient(135deg, white 0%, var(--sage-50) 100%);
  border-radius: 16px;
  padding: var(--space-8);
  margin-bottom: var(--space-8);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--stone-200);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-8);
}

.tc-detail-title-section {
  flex: 1;
}

.tc-detail-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--stone-900);
  margin: 0 0 var(--space-2);
  line-height: 1.2;
}

.tc-detail-description {
  font-size: 1rem;
  color: var(--stone-600);
  margin: 0 0 var(--space-3);
}

.tc-detail-status-badge {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tc-detail-status-badge.completed {
  background: #d1fae5;
  color: #065f46;
}

.tc-detail-status-badge.in-progress {
  background: #fef3c7;
  color: #92400e;
}

.tc-detail-status-badge.not-started {
  background: var(--stone-200);
  color: var(--stone-700);
}

.tc-detail-progress-section {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.tc-progress-visual {
  position: relative;
}

.tc-progress-circle {
  position: relative;
  width: 80px;
  height: 80px;
}

.tc-progress-ring {
  transform: rotate(-90deg);
}

.tc-progress-ring-bg {
  fill: none;
  stroke: var(--stone-200);
  stroke-width: 6;
}

.tc-progress-ring-fill {
  fill: none;
  stroke: var(--sage-600);
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.6s ease;
}

.tc-progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.tc-progress-percent {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--stone-900);
}

.tc-progress-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.tc-progress-stat {
  display: flex;
  flex-direction: column;
}

.tc-stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--stone-900);
  line-height: 1;
}

.tc-stat-label {
  font-size: 0.875rem;
  color: var(--stone-600);
}

/* AI Insights Section */
.tc-ai-insights-section {
  background: white;
  border-radius: 16px;
  padding: var(--space-8);
  margin-bottom: var(--space-8);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--stone-200);
}

.tc-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
}

.tc-section-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--stone-900);
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.tc-section-title .material-symbols-outlined {
  color: var(--sage-600);
  font-size: 1.5rem;
}

.tc-button-regenerate {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 1px solid var(--stone-300);
  border-radius: 8px;
  color: var(--stone-700);
  cursor: pointer;
  transition: all 0.2s;
}

.tc-button-regenerate:hover {
  background: var(--stone-100);
  border-color: var(--sage-400);
  color: var(--sage-700);
}

.tc-insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

.tc-insight-card {
  background: linear-gradient(135deg, white 0%, var(--sage-50) 100%);
  border-radius: 12px;
  padding: var(--space-6);
  border: 1px solid var(--stone-200);
  display: flex;
  gap: var(--space-4);
}

.tc-insight-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--sage-100), var(--sage-50));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage-700);
}

.tc-insight-icon .material-symbols-outlined {
  font-size: 1.5rem;
}

.tc-insight-content {
  flex: 1;
}

.tc-insight-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--stone-900);
  margin: 0 0 var(--space-2);
}

.tc-insight-text {
  font-size: 0.875rem;
  color: var(--stone-600);
  margin: 0;
  line-height: 1.6;
}

/* Recommendations */
.tc-recommendations {
  background: var(--sage-50);
  border-radius: 12px;
  padding: var(--space-6);
  border-left: 4px solid var(--sage-600);
}

.tc-recommendations-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--stone-900);
  margin: 0 0 var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.tc-recommendations-title .material-symbols-outlined {
  color: var(--sage-600);
  font-size: 1.25rem;
}

.tc-recommendations-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.tc-recommendations-list li {
  padding-left: var(--space-6);
  position: relative;
  font-size: 0.9375rem;
  color: var(--stone-700);
  line-height: 1.6;
}

.tc-recommendations-list li::before {
  content: '';
  position: absolute;
  left: 0;
  width: 1rem;
  height: 1rem;
  background: var(--sage-600);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Responses Section */
.tc-responses-section {
  background: white;
  border-radius: 16px;
  padding: var(--space-8);
  margin-bottom: var(--space-8);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--stone-200);
}

.tc-responses-grid {
  display: grid;
  gap: var(--space-6);
}

/* Classes obsolètes supprimées - voir nouvelles classes .tc-response-card en bas du fichier */

/* Detail Actions */
.tc-detail-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  margin-top: var(--space-8);
  flex-wrap: wrap;
}

.tc-button-secondary {
  background: white;
  color: var(--stone-700);
  border: 1px solid var(--stone-300);
}

.tc-button-secondary:hover {
  background: var(--stone-100);
  border-color: var(--sage-400);
  color: var(--sage-700);
}

/* ================================================================
   NAV DISPOSITIF GROUPS - SIDEBAR SUB-ITEMS
   ================================================================ */

.tc-nav-dispositif-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-bottom: var(--space-4);
}

.tc-nav-subitem {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.875rem;
  color: var(--stone-700);
}

.tc-nav-subitem:hover {
  background-color: var(--stone-100);
  color: var(--brand-olive-700);
}

.tc-nav-subitem.active {
  background-color: var(--brand-olive-100);
  color: var(--brand-olive-800);
  font-weight: 600;
}

.tc-nav-dispositif-header {
  font-weight: 600;
  padding: var(--space-3);
  margin-bottom: var(--space-2);
}

.tc-nav-sous-module {
  padding-left: var(--space-6);
}

.tc-nav-status-icon {
  font-size: 0.875rem;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.tc-nav-subitem.completed .tc-nav-status-icon {
  color: #10b981;
}

.tc-nav-subitem.in-progress .tc-nav-status-icon {
  color: #f59e0b;
}

.tc-nav-subitem.not-started .tc-nav-status-icon {
  color: var(--stone-400);
}

.tc-nav-title {
  flex: 1;
  line-height: 1.4;
}

/* ================================================================
   RESPONSIVE ADJUSTMENTS FOR DETAIL VIEW
   ================================================================ */

@media (max-width: 768px) {
  .tc-detail-header-enhanced {
    flex-direction: column;
    gap: var(--space-6);
  }

  .tc-detail-progress-section {
    width: 100%;
    justify-content: space-between;
  }

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

  .tc-detail-actions {
    flex-direction: column;
  }

  .tc-detail-actions .tc-button {
    width: 100%;
  }
}

/* ================================================================
   CACHER LE HEADER GHOST CMS
   ================================================================ */


/* ================================================================
   DETAIL VIEW - DIAGNOSTIC AUTONOMIE
   ================================================================ */

.tc-detail-header {
  margin-bottom: var(--space-8);
}

.tc-detail-meta {
  display: flex;
  gap: var(--space-6);
  margin-top: var(--space-4);
  flex-wrap: wrap;
}

.tc-detail-meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.9375rem;
  color: var(--stone-600);
}

.tc-detail-meta-item .material-symbols-outlined {
  font-size: 1.25rem;
  color: var(--sage-600);
}

.tc-questions-container {
  width: 100%;
}

/* ================================================================
   DIAGNOSTIC RESULTS - AUTONOMIE
   ================================================================ */

.diagnostic-results-dashboard {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

/* Score Card */
.diagnostic-score-card {
  background: linear-gradient(135deg, white 0%, var(--sage-50) 100%);
  border-radius: 16px;
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--stone-200);
}

.diagnostic-score-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-6);
}

.diagnostic-score-badge {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.diagnostic-score-label {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--stone-600);
}

.diagnostic-score-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--sage-700);
  line-height: 1;
}

.diagnostic-coherence {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-2);
}

.diagnostic-coherence-label {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--stone-600);
}

.diagnostic-coherence-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--copper-600);
  line-height: 1;
}

/* Profile Cards */
.diagnostic-profile-card {
  background: white;
  border-radius: 16px;
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--stone-200);
}

.diagnostic-profile-primary {
  border-left: 4px solid var(--sage-600);
}

.diagnostic-profile-secondary {
  border-left: 4px solid var(--stone-400);
}

.diagnostic-profile-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--stone-200);
}

.diagnostic-profile-header .material-symbols-outlined {
  font-size: 1.75rem;
  color: var(--sage-600);
}

.diagnostic-profile-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--stone-900);
  margin: 0;
}

.diagnostic-profile-header h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--stone-800);
  margin: 0;
}

.diagnostic-profile-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.diagnostic-profile-item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--stone-50);
  border-radius: 12px;
  border-left: 3px solid transparent;
}

.diagnostic-profile-item.diagnostic-profile-besoin {
  border-left-color: #3b82f6;
  background: #eff6ff;
}

.diagnostic-profile-item.diagnostic-profile-forces {
  border-left-color: #10b981;
  background: #f0fdf4;
}

.diagnostic-profile-item.diagnostic-profile-freins {
  border-left-color: #f59e0b;
  background: #fffbeb;
}

.diagnostic-profile-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  color: var(--stone-700);
}

.diagnostic-profile-item strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--stone-900);
  margin-bottom: var(--space-2);
}

.diagnostic-profile-item p {
  font-size: 0.9375rem;
  color: var(--stone-700);
  line-height: 1.6;
  margin: 0;
}

/* Actions Section */
.diagnostic-actions-section {
  background: white;
  border-radius: 16px;
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--stone-200);
}

.diagnostic-actions-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--stone-900);
  margin: 0 0 var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.diagnostic-actions-title .material-symbols-outlined {
  font-size: 1.75rem;
  color: var(--sage-600);
}

.diagnostic-actions-grid {
  display: grid;
  gap: var(--space-6);
}

.diagnostic-action-item {
  background: linear-gradient(135deg, white 0%, var(--sage-50) 100%);
  border-radius: 12px;
  padding: var(--space-6);
  border: 1px solid var(--stone-200);
  border-left: 4px solid var(--sage-600);
  transition: all 0.3s ease;
}

.diagnostic-action-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.diagnostic-action-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.diagnostic-action-header .material-symbols-outlined {
  font-size: 1.5rem;
  color: var(--sage-600);
  flex-shrink: 0;
}

.diagnostic-action-header h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--stone-900);
  margin: 0;
  line-height: 1.3;
}

.diagnostic-action-content {
  font-size: 0.9375rem;
  color: var(--stone-700);
  line-height: 1.6;
  margin: 0;
  padding-left: calc(1.5rem + var(--space-3));
}

/* ================================================================
   RESPONSIVE FOR DIAGNOSTIC
   ================================================================ */

@media (max-width: 768px) {
  .diagnostic-score-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .diagnostic-coherence {
    align-items: flex-start;
  }

  .diagnostic-score-value,
  .diagnostic-coherence-value {
    font-size: 1.5rem;
  }

  .diagnostic-profile-item {
    flex-direction: column;
  }

  .diagnostic-action-content {
    padding-left: 0;
  }
}

/* ================================================================
   CACHER LE HEADER GHOST CMS - PLUS PRÉCIS
   ================================================================ */

/* Cacher le hero Ghost */
.max-w-wide {
  display: none !important;
}

/* Alternative : cibler par attribut */
[data-post-hero-content] {
  display: none !important;
}

/* ================================================================
   CLASSES SUPPLÉMENTAIRES POUR DIAGNOSTICS AVEC IA
   ================================================================ */

/* Alertes et vigilances */
.diagnostic-alert {
  background: var(--amber-50);
  border-left: 4px solid var(--amber-500);
  border-radius: 8px;
  padding: var(--space-6);
  margin-top: var(--space-6);
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.diagnostic-alert .material-symbols-outlined {
  color: var(--amber-600);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.diagnostic-alert strong {
  display: block;
  font-weight: 600;
  color: var(--amber-900);
  margin-bottom: var(--space-2);
}

.diagnostic-alert p {
  color: var(--amber-800);
  line-height: 1.6;
  margin: 0;
}

.diagnostic-vigilance {
  background: var(--stone-50);
  border-radius: 8px;
  padding: var(--space-6);
  margin-top: var(--space-6);
}

.diagnostic-vigilance strong {
  display: block;
  font-weight: 600;
  color: var(--stone-900);
  margin-bottom: var(--space-3);
}

.diagnostic-vigilance ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.diagnostic-vigilance li {
  padding-left: var(--space-6);
  position: relative;
  color: var(--stone-700);
  line-height: 1.6;
  margin-bottom: var(--space-3);
}

.diagnostic-vigilance li:before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--sage-600);
  font-weight: 700;
  font-size: 1.2rem;
}

.diagnostic-vigilance li:last-child {
  margin-bottom: 0;
}

/* Points forts avec barres de progression */
.diagnostic-strength-item {
  margin-bottom: var(--space-6);
}

.diagnostic-strength-item:last-child {
  margin-bottom: 0;
}

.diagnostic-strength-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-2);
}

.diagnostic-strength-header span:first-child {
  font-weight: 600;
  color: var(--stone-900);
  font-size: 0.9375rem;
}

.diagnostic-strength-score {
  font-weight: 700;
  color: var(--sage-700);
  font-size: 0.875rem;
}

.diagnostic-progress-bar {
  width: 100%;
  height: 8px;
  background: var(--stone-200);
  border-radius: 4px;
  overflow: hidden;
}

.diagnostic-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--sage-500), var(--sage-600));
  border-radius: 4px;
  transition: width 0.6s ease;
}

.diagnostic-strengths-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Quick win */
.diagnostic-quick-win {
  background: linear-gradient(135deg, var(--sage-50) 0%, var(--sage-100) 100%);
  border-radius: 12px;
  padding: var(--space-8);
  margin-bottom: var(--space-6);
  border: 2px solid var(--sage-300);
}

.diagnostic-quick-win .diagnostic-action-header {
  margin-bottom: var(--space-4);
}

.diagnostic-quick-win p {
  margin: var(--space-3) 0;
  line-height: 1.7;
}

/* Formation suggérée */
.diagnostic-formation {
  background: white;
  border: 1px solid var(--stone-200);
  border-radius: 12px;
  padding: var(--space-8);
  margin-bottom: var(--space-6);
}

.diagnostic-formation h4 {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--stone-900);
  margin: 0 0 var(--space-4);
}

.diagnostic-formation h4 .material-symbols-outlined {
  color: var(--sage-600);
  font-size: 1.5rem;
}

.diagnostic-formation p {
  color: var(--stone-700);
  line-height: 1.6;
  margin: var(--space-3) 0;
}

.diagnostic-formation ul {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0 0;
}

.diagnostic-formation li {
  padding: var(--space-3) var(--space-4);
  background: var(--sage-50);
  border-radius: 6px;
  margin-bottom: var(--space-2);
  color: var(--stone-800);
  font-size: 0.9375rem;
}

.diagnostic-formation li:before {
  content: '';
  display: inline-block;
  width: 1rem;
  height: 1rem;
  margin-right: var(--space-2);
  background: var(--sage-600);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z'/%3E%3C/svg%3E") center/contain no-repeat;
  vertical-align: -2px;
}

/* Styles pour action-why et action-timeline */
.diagnostic-action-why,
.diagnostic-action-timeline {
  font-size: 0.875rem;
  color: var(--stone-600);
  margin: var(--space-3) 0;
  padding-left: calc(1.5rem + var(--space-3));
  line-height: 1.5;
}

.diagnostic-action-why strong,
.diagnostic-action-timeline strong {
  color: var(--sage-700);
  font-weight: 600;
}

/* Narrative text pour la synthèse */
.diagnostic-narrative {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--stone-800);
  margin: 0;
  padding: var(--space-6);
  background: var(--sage-50);
  border-radius: 8px;
  border-left: 4px solid var(--sage-500);
}

/* Responsive pour les nouvelles classes */
@media (max-width: 768px) {
  .diagnostic-alert,
  .diagnostic-vigilance,
  .diagnostic-quick-win,
  .diagnostic-formation {
    padding: var(--space-6);
  }

  .diagnostic-strength-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }

  .diagnostic-action-why,
  .diagnostic-action-timeline {
    padding-left: 0;
  }
}

/* Cacher aussi le conteneur parent */
.gh-article .max-w-wide,
article .max-w-wide {
  display: none !important;
}

/* ====================================
   RÉPONSES MODERNES - Design aéré
   ==================================== */

.tc-response-card {
  background: white;
  border-radius: 16px;
  padding: var(--space-8);
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--stone-200);
  transition: all 0.2s ease;
}

.tc-response-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--sage-300);
}

.tc-response-question-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--sage-700);
  margin-bottom: var(--space-4);
  letter-spacing: -0.01em;
  line-height: 1.5;
}

.tc-response-answer {
  font-size: 1rem;
  color: var(--stone-800);
  line-height: 1.7;
  padding: var(--space-4);
  background: var(--sage-50);
  border-radius: 8px;
  border-left: 3px solid var(--sage-400);
}

.tc-responses-etape {
  margin-bottom: var(--space-10);
}

.tc-etape-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 2px solid var(--sage-200);
}

.tc-etape-number {
  width: 36px;
  height: 36px;
  background: var(--sage-500);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.tc-etape-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--stone-900);
  margin: 0;
}

.tc-responses-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
/* ================================================================
   DESIGN MODERNE ET PREMIUM POUR DIAGNOSTICS IA
   Remplace les styles de dashboard.css lignes 1580-1822
   ================================================================ */

/* Hero card - Profil managérial */
.diagnostic-profile-card.diagnostic-profile-primary {
  background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(247, 250, 247, 0.95) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(200, 220, 210, 0.3);
  box-shadow:
    0 20px 40px rgba(0,0,0,0.06),
    0 8px 16px rgba(0,0,0,0.03),
    inset 0 1px 0 rgba(255,255,255,0.9);
  margin-bottom: var(--space-10);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.diagnostic-profile-card.diagnostic-profile-primary:hover {
  transform: translateY(-4px);
  box-shadow:
    0 32px 64px rgba(0,0,0,0.08),
    0 12px 24px rgba(0,0,0,0.04);
}

.diagnostic-narrative {
  font-size: 1.125rem;
  line-height: 1.9;
  color: var(--stone-800);
  margin: 0;
  padding: var(--space-10);
  background: linear-gradient(135deg,
    rgba(226, 239, 230, 0.4) 0%,
    rgba(255,255,255,0.6) 50%,
    rgba(237, 243, 239, 0.3) 100%);
  border-radius: 20px;
  border: none;
  box-shadow:
    inset 0 2px 4px rgba(0,0,0,0.04),
    inset 0 -1px 2px rgba(255,255,255,0.8);
  font-weight: 400;
  letter-spacing: -0.02em;
}

/* Alertes - Glass morphism premium */
.diagnostic-alert {
  position: relative;
  background: linear-gradient(135deg,
    rgba(254, 243, 199, 0.6) 0%,
    rgba(255, 251, 235, 0.4) 100%);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(251, 191, 36, 0.25);
  border-radius: 20px;
  padding: var(--space-10);
  margin-top: var(--space-10);
  display: flex;
  gap: var(--space-6);
  align-items: flex-start;
  box-shadow:
    0 8px 32px rgba(251, 191, 36, 0.12),
    0 2px 8px rgba(251, 191, 36, 0.06),
    inset 0 1px 0 rgba(255,255,255,0.8);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.diagnostic-alert:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--amber-400), var(--amber-600));
}

.diagnostic-alert:hover {
  box-shadow:
    0 16px 48px rgba(251, 191, 36, 0.16),
    0 4px 12px rgba(251, 191, 36, 0.08);
  transform: translateY(-3px) scale(1.01);
  border-color: rgba(251, 191, 36, 0.35);
}

.diagnostic-alert .material-symbols-outlined {
  color: var(--amber-600);
  font-size: 2.5rem;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(251, 191, 36, 0.08));
  padding: var(--space-4);
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.1);
}

.diagnostic-alert strong {
  display: block;
  font-weight: 700;
  color: var(--amber-900);
  margin-bottom: var(--space-4);
  font-size: 1.125rem;
  letter-spacing: -0.03em;
}

.diagnostic-alert p {
  color: var(--stone-800);
  line-height: 1.8;
  margin: 0;
  font-size: 1rem;
}

/* Vigilances - Cards modernes */
.diagnostic-vigilance {
  background: white;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 20px;
  padding: var(--space-10);
  margin-top: var(--space-10);
  box-shadow:
    0 4px 24px rgba(0,0,0,0.04),
    0 1px 4px rgba(0,0,0,0.02);
}

.diagnostic-vigilance strong {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 800;
  color: var(--stone-900);
  margin-bottom: var(--space-6);
  font-size: 1.1875rem;
  letter-spacing: -0.03em;
}

.diagnostic-vigilance strong:before {
  content: '';
  font-size: 1.5rem;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(251, 191, 36, 0.08));
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z'/%3E%3C/svg%3E") center/70% no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z'/%3E%3C/svg%3E") center/70% no-repeat;
}

.diagnostic-vigilance ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.diagnostic-vigilance li {
  padding: var(--space-6) var(--space-8);
  padding-left: calc(var(--space-8) + 2rem);
  position: relative;
  color: var(--stone-700);
  line-height: 1.8;
  background: linear-gradient(135deg, var(--stone-50) 0%, rgba(255,255,255,0.5) 100%);
  border-radius: 16px;
  border-left: 4px solid transparent;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.diagnostic-vigilance li:hover {
  background: linear-gradient(135deg, var(--sage-50) 0%, rgba(226, 239, 230, 0.6) 100%);
  border-left-color: var(--sage-600);
  transform: translateX(6px);
  box-shadow:
    0 8px 24px rgba(0,0,0,0.06),
    -4px 0 16px rgba(121, 178, 138, 0.1);
}

.diagnostic-vigilance li:before {
  content: '';
  position: absolute;
  left: var(--space-6);
  width: 1.5rem;
  height: 1.5rem;
  background: var(--sage-600);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: all 0.3s ease;
}

.diagnostic-vigilance li:hover:before {
  transform: translateX(4px);
}

/* Points forts - Barres de progression modernes */
.diagnostic-strength-item {
  margin-bottom: var(--space-8);
  padding: var(--space-6);
  background: white;
  border-radius: 16px;
  transition: all 0.3s ease;
  border: 1px solid rgba(0,0,0,0.04);
}

.diagnostic-strength-item:hover {
  background: linear-gradient(135deg, rgba(226, 239, 230, 0.2) 0%, white 100%);
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(121, 178, 138, 0.08);
}

.diagnostic-strength-item:last-child {
  margin-bottom: 0;
}

.diagnostic-strength-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
}

.diagnostic-strength-header span:first-child {
  font-weight: 700;
  color: var(--stone-900);
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
}

.diagnostic-strength-score {
  font-weight: 800;
  background: linear-gradient(135deg, var(--sage-600), var(--sage-700));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.diagnostic-progress-bar {
  width: 100%;
  height: 12px;
  background: linear-gradient(90deg, var(--stone-100), var(--stone-50));
  border-radius: 100px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
}

.diagnostic-progress-fill {
  height: 100%;
  background: linear-gradient(90deg,
    var(--sage-400) 0%,
    var(--sage-500) 50%,
    var(--sage-600) 100%);
  border-radius: 100px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 2px 8px rgba(121, 178, 138, 0.3),
    inset 0 1px 0 rgba(255,255,255,0.3);
  position: relative;
}

.diagnostic-progress-fill:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.3), transparent);
  border-radius: 100px 100px 0 0;
}

/* Quick win - Hero box premium */
.diagnostic-quick-win {
  position: relative;
  background: linear-gradient(135deg,
    rgba(226, 239, 230, 0.6) 0%,
    rgba(237, 243, 239, 0.4) 50%,
    rgba(247, 250, 247, 0.6) 100%);
  backdrop-filter: blur(16px);
  border-radius: 24px;
  padding: var(--space-12);
  margin-bottom: var(--space-8);
  border: 2px solid rgba(121, 178, 138, 0.2);
  box-shadow:
    0 16px 48px rgba(121, 178, 138, 0.12),
    0 4px 16px rgba(121, 178, 138, 0.06),
    inset 0 1px 0 rgba(255,255,255,0.9);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.diagnostic-quick-win:before {
  content: '';
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, var(--sage-200), var(--sage-100));
  opacity: 0.1;
  border-radius: 50%;
  transform: rotate(-15deg);
}

.diagnostic-quick-win:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow:
    0 24px 64px rgba(121, 178, 138, 0.16),
    0 8px 24px rgba(121, 178, 138, 0.08);
  border-color: rgba(121, 178, 138, 0.3);
}

.diagnostic-quick-win .diagnostic-action-header {
  margin-bottom: var(--space-6);
}

.diagnostic-quick-win .diagnostic-action-header h4 {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.diagnostic-quick-win p {
  margin: var(--space-4) 0;
  line-height: 1.8;
  font-size: 1.0625rem;
}

/* Formation - Card élégante */
.diagnostic-formation {
  background: white;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 20px;
  padding: var(--space-10);
  margin-bottom: var(--space-8);
  box-shadow:
    0 8px 32px rgba(0,0,0,0.04),
    0 2px 8px rgba(0,0,0,0.02);
  transition: all 0.3s ease;
}

.diagnostic-formation:hover {
  box-shadow:
    0 16px 48px rgba(0,0,0,0.06),
    0 4px 12px rgba(0,0,0,0.03);
  transform: translateY(-2px);
}

.diagnostic-formation h4 {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--stone-900);
  margin: 0 0 var(--space-6);
  letter-spacing: -0.03em;
}

.diagnostic-formation h4 .material-symbols-outlined {
  color: var(--sage-600);
  font-size: 2rem;
  background: linear-gradient(135deg, rgba(121, 178, 138, 0.15), rgba(121, 178, 138, 0.08));
  padding: var(--space-3);
  border-radius: 14px;
}

.diagnostic-formation p {
  color: var(--stone-700);
  line-height: 1.8;
  margin: var(--space-4) 0;
  font-size: 1rem;
}

.diagnostic-formation ul {
  list-style: none;
  padding: 0;
  margin: var(--space-6) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.diagnostic-formation li {
  padding: var(--space-5) var(--space-6);
  background: linear-gradient(135deg, var(--sage-50) 0%, rgba(226, 239, 230, 0.4) 100%);
  border-radius: 12px;
  color: var(--stone-800);
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.diagnostic-formation li:hover {
  background: linear-gradient(135deg, var(--sage-100) 0%, var(--sage-50) 100%);
  border-color: var(--sage-200);
  transform: translateX(4px);
}

.diagnostic-formation li:before {
  content: '';
  display: inline-block;
  width: 1.125rem;
  height: 1.125rem;
  margin-right: var(--space-3);
  background: var(--sage-600);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z'/%3E%3C/svg%3E") center/contain no-repeat;
  vertical-align: -2px;
}

/* Métadonnées actions */
.diagnostic-action-why,
.diagnostic-action-timeline {
  font-size: 0.9375rem;
  color: var(--stone-600);
  margin: var(--space-4) 0;
  padding: var(--space-4) var(--space-6);
  padding-left: calc(var(--space-6) + 2rem);
  line-height: 1.7;
  background: var(--stone-50);
  border-radius: 10px;
  position: relative;
  border-left: 3px solid var(--sage-400);
}

.diagnostic-action-why:before {
  content: '';
  position: absolute;
  left: var(--space-4);
  width: 1.25rem;
  height: 1.25rem;
  background: var(--amber-500);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 21c0 .5.4 1 1 1h4c.6 0 1-.5 1-1v-1H9v1zm3-19C8.1 2 5 5.1 5 9c0 2.4 1.2 4.5 3 5.7V17c0 .5.4 1 1 1h6c.6 0 1-.5 1-1v-2.3c1.8-1.3 3-3.4 3-5.7 0-3.9-3.1-7-7-7z'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 21c0 .5.4 1 1 1h4c.6 0 1-.5 1-1v-1H9v1zm3-19C8.1 2 5 5.1 5 9c0 2.4 1.2 4.5 3 5.7V17c0 .5.4 1 1 1h6c.6 0 1-.5 1-1v-2.3c1.8-1.3 3-3.4 3-5.7 0-3.9-3.1-7-7-7z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.diagnostic-action-timeline:before {
  content: '';
  position: absolute;
  left: var(--space-4);
  width: 1.25rem;
  height: 1.25rem;
  background: var(--sage-600);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67z'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.diagnostic-action-why strong,
.diagnostic-action-timeline strong {
  color: var(--sage-700);
  font-weight: 700;
}

/* Responsive premium */
@media (max-width: 768px) {
  .diagnostic-alert,
  .diagnostic-vigilance,
  .diagnostic-quick-win,
  .diagnostic-formation {
    padding: var(--space-8);
  }

  .diagnostic-narrative {
    padding: var(--space-8);
    font-size: 1rem;
  }

  .diagnostic-strength-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }

  .diagnostic-action-why,
  .diagnostic-action-timeline {
    padding-left: calc(var(--space-6) + 1.5rem);
  }

  .diagnostic-quick-win:before {
    width: 3rem;
    height: 3rem;
  }
}

/* ================================================================
   DESIGN MODERNE ET PREMIUM POUR ATELIERS, DISPOSITIFS, SOUS-MODULES
   Style cohérent avec les diagnostics IA
   ================================================================ */

/* En-tête enrichi des détails (ateliers/modules) */
.tc-detail-header-enhanced {
  background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(247, 250, 247, 0.95) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(200, 220, 210, 0.3);
  border-radius: 24px;
  padding: var(--space-10);
  margin-bottom: var(--space-10);
  box-shadow:
    0 20px 40px rgba(0,0,0,0.06),
    0 8px 16px rgba(0,0,0,0.03),
    inset 0 1px 0 rgba(255,255,255,0.9);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-10);
  align-items: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tc-detail-header-enhanced:hover {
  transform: translateY(-4px);
  box-shadow:
    0 32px 64px rgba(0,0,0,0.08),
    0 12px 24px rgba(0,0,0,0.04);
}

.tc-detail-title-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.tc-detail-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--stone-900);
  margin: 0;
  letter-spacing: -0.04em;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--stone-900), var(--sage-800));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tc-detail-description {
  font-size: 1.0625rem;
  color: var(--stone-700);
  line-height: 1.8;
  margin: 0;
  max-width: 65ch;
  font-weight: 400;
}

.tc-detail-status-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  border: 1px solid transparent;
  transition: all 0.3s ease;
  width: fit-content;
}

.tc-detail-status-badge.tc-status-not-started {
  background: linear-gradient(135deg, rgba(214, 211, 209, 0.4), rgba(231, 229, 228, 0.3));
  color: var(--stone-700);
  border-color: rgba(120, 113, 108, 0.2);
}

.tc-detail-status-badge.tc-status-in-progress {
  background: linear-gradient(135deg, rgba(121, 178, 138, 0.25), rgba(121, 178, 138, 0.15));
  color: var(--sage-800);
  border-color: rgba(121, 178, 138, 0.3);
}

.tc-detail-status-badge.tc-status-completed {
  background: linear-gradient(135deg, rgba(121, 178, 138, 0.35), rgba(121, 178, 138, 0.25));
  color: var(--sage-900);
  border-color: rgba(121, 178, 138, 0.4);
  box-shadow: 0 4px 16px rgba(121, 178, 138, 0.2);
}

.tc-detail-progress-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-6);
  background: linear-gradient(135deg, rgba(226, 239, 230, 0.3), rgba(255,255,255,0.5));
  border-radius: 20px;
  min-width: 200px;
}

.tc-progress-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  width: 100%;
}

.tc-progress-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}

.tc-stat-number {
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--sage-700);
  letter-spacing: -0.03em;
  line-height: 1;
}

.tc-stat-label {
  font-size: 0.8125rem;
  color: var(--stone-600);
  font-weight: 500;
  text-align: center;
  line-height: 1.4;
}

/* Section synthèse IA structurée */
.tc-synthese-structured {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.tc-synthese-section {
  background: white;
  border-radius: 16px;
  padding: var(--space-8);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow:
    0 4px 16px rgba(0,0,0,0.03),
    0 1px 4px rgba(0,0,0,0.02);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tc-synthese-section:hover {
  box-shadow:
    0 8px 24px rgba(0,0,0,0.05),
    0 2px 8px rgba(0,0,0,0.03);
  transform: translateY(-2px);
}

.tc-synthese-section h4 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--sage-800);
  margin: 0 0 var(--space-5);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.tc-synthese-section h4:before {
  content: '';
  width: 4px;
  height: 1.5rem;
  background: linear-gradient(180deg, var(--sage-500), var(--sage-600));
  border-radius: 100px;
  box-shadow: 0 2px 8px rgba(121, 178, 138, 0.3);
}

.tc-synthese-section p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--stone-700);
  margin: 0;
}

.tc-synthese-section ul {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.tc-synthese-section li {
  padding: var(--space-4) var(--space-6);
  padding-left: calc(var(--space-6) + 1.5rem);
  background: linear-gradient(135deg, var(--sage-50) 0%, rgba(226, 239, 230, 0.3) 100%);
  border-radius: 10px;
  color: var(--stone-800);
  font-size: 0.9375rem;
  line-height: 1.7;
  position: relative;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.tc-synthese-section li:hover {
  background: linear-gradient(135deg, var(--sage-100) 0%, var(--sage-50) 100%);
  border-left-color: var(--sage-500);
  transform: translateX(4px);
}

.tc-synthese-section li:before {
  content: '';
  position: absolute;
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  background: var(--sage-600);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.tc-synthese-section li strong {
  color: var(--sage-800);
  font-weight: 700;
}

/* Section analyse des bilans */
.tc-bilan-analysis-section {
  background: white;
  border-radius: 20px;
  padding: var(--space-10);
  margin-bottom: var(--space-8);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow:
    0 8px 32px rgba(0,0,0,0.04),
    0 2px 8px rgba(0,0,0,0.02);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tc-bilan-analysis-section:hover {
  box-shadow:
    0 16px 48px rgba(0,0,0,0.06),
    0 4px 12px rgba(0,0,0,0.03);
  transform: translateY(-2px);
}

.tc-bilan-analysis-section h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--sage-800);
  margin: 0 0 var(--space-8);
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.tc-bilan-analysis-section h3:before {
  content: '';
  width: 6px;
  height: 2rem;
  background: linear-gradient(180deg, var(--sage-400), var(--sage-600));
  border-radius: 100px;
  box-shadow: 0 4px 12px rgba(121, 178, 138, 0.3);
}

/* Section réponses des bilans */
.tc-bilan-responses-section {
  background: white;
  border-radius: 20px;
  padding: var(--space-10);
  margin-bottom: var(--space-8);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow:
    0 8px 32px rgba(0,0,0,0.04),
    0 2px 8px rgba(0,0,0,0.02);
}

.tc-bilan-responses-section h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--stone-900);
  margin: 0 0 var(--space-8);
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.tc-response-item {
  background: linear-gradient(135deg, var(--stone-50) 0%, rgba(247, 246, 245, 0.5) 100%);
  border-radius: 14px;
  padding: var(--space-6);
  margin-bottom: var(--space-4);
  border: 1px solid rgba(0,0,0,0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tc-response-item:hover {
  background: linear-gradient(135deg, var(--stone-100) 0%, var(--stone-50) 100%);
  border-color: rgba(0,0,0,0.08);
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.tc-response-question {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--sage-800);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}

.tc-response-answer {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--stone-700);
  padding-left: var(--space-6);
  font-weight: 400;
}

/* Header du détail (fallback simple) */
.tc-detail-header {
  background: white;
  border-radius: 20px;
  padding: var(--space-10);
  margin-bottom: var(--space-8);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow:
    0 8px 32px rgba(0,0,0,0.04),
    0 2px 8px rgba(0,0,0,0.02);
}

.tc-detail-meta {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(0,0,0,0.06);
}

.tc-detail-meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.9375rem;
  color: var(--stone-600);
}

.tc-detail-meta-item .material-symbols-outlined {
  font-size: 1.25rem;
  color: var(--sage-600);
}

/* Actions du détail */
.tc-detail-actions {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-10);
  padding-top: var(--space-10);
  border-top: 1px solid rgba(0,0,0,0.06);
  flex-wrap: wrap;
}

/* Boutons premium */
.tc-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-8);
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.tc-btn-primary {
  background: linear-gradient(135deg, var(--sage-500), var(--sage-600));
  color: white;
  box-shadow:
    0 4px 16px rgba(121, 178, 138, 0.3),
    0 2px 8px rgba(121, 178, 138, 0.2);
}

.tc-btn-primary:hover {
  background: linear-gradient(135deg, var(--sage-600), var(--sage-700));
  transform: translateY(-2px);
  box-shadow:
    0 8px 24px rgba(121, 178, 138, 0.4),
    0 4px 12px rgba(121, 178, 138, 0.25);
}

.tc-btn-primary:active {
  transform: translateY(0);
}

.tc-btn-secondary {
  background: white;
  color: var(--stone-800);
  border-color: rgba(0,0,0,0.12);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.tc-btn-secondary:hover {
  background: var(--stone-50);
  border-color: rgba(0,0,0,0.16);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.tc-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-8);
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  cursor: pointer;
}

.tc-button-primary {
  background: linear-gradient(135deg, var(--sage-500), var(--sage-600));
  color: white;
  box-shadow:
    0 4px 16px rgba(121, 178, 138, 0.3),
    0 2px 8px rgba(121, 178, 138, 0.2);
}

.tc-button-primary:hover {
  background: linear-gradient(135deg, var(--sage-600), var(--sage-700));
  transform: translateY(-2px);
  box-shadow:
    0 8px 24px rgba(121, 178, 138, 0.4),
    0 4px 12px rgba(121, 178, 138, 0.25);
}

/* Responsive ateliers/modules */
@media (max-width: 768px) {
  .tc-detail-header-enhanced {
    grid-template-columns: 1fr;
    padding: var(--space-8);
  }

  .tc-detail-title {
    font-size: 1.5rem;
  }

  .tc-detail-progress-section {
    width: 100%;
  }

  .tc-synthese-section,
  .tc-bilan-analysis-section,
  .tc-bilan-responses-section {
    padding: var(--space-8);
  }

  .tc-detail-actions {
    flex-direction: column;
  }

  .tc-detail-actions .tc-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ================================================================
   SECTION PROCHAINES ÉTAPES - ACTIONS RECOMMANDÉES
   Style cohérent avec le design premium
   ================================================================ */

/* En-tête de section */
.tc-section-header {
  margin-bottom: var(--space-10);
}

.tc-title-1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--stone-900);
  margin: 0 0 var(--space-3);
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.tc-body-lg {
  font-size: 1.125rem;
  color: var(--stone-600);
  margin: 0;
  font-weight: 400;
  line-height: 1.6;
}

/* Grille d'actions */
.dashboard-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-8);
}

/* Carte d'action premium */
.tc-action-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(247, 250, 247, 0.95) 100%);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(200, 220, 210, 0.3);
  border-radius: 20px;
  padding: var(--space-8);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-6);
  align-items: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 8px 24px rgba(0,0,0,0.04),
    0 2px 8px rgba(0,0,0,0.02),
    inset 0 1px 0 rgba(255,255,255,0.9);
  position: relative;
  overflow: hidden;
}

.tc-action-card:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--sage-400), var(--sage-600));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tc-action-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(121, 178, 138, 0.4);
  box-shadow:
    0 20px 48px rgba(121, 178, 138, 0.12),
    0 8px 24px rgba(0,0,0,0.06),
    inset 0 1px 0 rgba(255,255,255,1);
}

.tc-action-card:hover:before {
  opacity: 1;
}

.tc-action-card:active {
  transform: translateY(-2px) scale(1.005);
}

.tc-action-card:focus {
  outline: 2px solid var(--sage-400);
  outline-offset: 2px;
}

/* Icône de l'action */
.tc-action-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--sage-100), var(--sage-50));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 4px 12px rgba(121, 178, 138, 0.15),
    inset 0 1px 0 rgba(255,255,255,0.8);
}

.tc-action-card:hover .tc-action-icon {
  background: linear-gradient(135deg, var(--sage-200), var(--sage-100));
  box-shadow:
    0 8px 20px rgba(121, 178, 138, 0.25),
    inset 0 1px 0 rgba(255,255,255,1);
  transform: scale(1.1) rotate(5deg);
}

.tc-action-icon .material-symbols-outlined {
  font-size: 2rem;
  color: var(--sage-700);
  transition: all 0.3s ease;
}

.tc-action-card:hover .tc-action-icon .material-symbols-outlined {
  color: var(--sage-800);
  transform: scale(1.1);
}

/* Contenu de l'action */
.tc-action-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
}

.tc-action-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--stone-900);
  margin: 0;
  line-height: 1.4;
  letter-spacing: -0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tc-action-card-description {
  font-size: 0.9375rem;
  color: var(--stone-600);
  margin: 0;
  line-height: 1.6;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Flèche de l'action */
.tc-action-arrow {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(121, 178, 138, 0.1), rgba(121, 178, 138, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tc-action-card:hover .tc-action-arrow {
  background: linear-gradient(135deg, var(--sage-600), var(--sage-700));
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(121, 178, 138, 0.3);
}

.tc-action-arrow .material-symbols-outlined {
  font-size: 1.5rem;
  color: var(--sage-700);
  transition: all 0.3s ease;
}

.tc-action-card:hover .tc-action-arrow .material-symbols-outlined {
  color: white;
  transform: translateX(2px);
}

/* Variantes de cartes d'action */
.tc-action-card.tc-action-card-primary {
  background: linear-gradient(135deg,
    rgba(121, 178, 138, 0.08) 0%,
    rgba(226, 239, 230, 0.5) 50%,
    rgba(255,255,255,0.95) 100%);
  border-color: rgba(121, 178, 138, 0.3);
}

.tc-action-card.tc-action-card-primary:hover {
  background: linear-gradient(135deg,
    rgba(121, 178, 138, 0.12) 0%,
    rgba(226, 239, 230, 0.7) 50%,
    rgba(255,255,255,0.98) 100%);
}

.tc-action-card.tc-action-card-primary .tc-action-icon {
  background: linear-gradient(135deg, var(--sage-500), var(--sage-600));
}

.tc-action-card.tc-action-card-primary .tc-action-icon .material-symbols-outlined {
  color: white;
}

.tc-action-card.tc-action-card-primary:hover .tc-action-icon {
  background: linear-gradient(135deg, var(--sage-600), var(--sage-700));
  box-shadow:
    0 12px 28px rgba(121, 178, 138, 0.35),
    inset 0 1px 0 rgba(255,255,255,0.3);
}

/* États des cartes */
.tc-action-card[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.tc-action-card.tc-action-card-completed {
  background: linear-gradient(135deg,
    rgba(121, 178, 138, 0.15) 0%,
    rgba(226, 239, 230, 0.6) 100%);
  border-color: rgba(121, 178, 138, 0.4);
}

.tc-action-card.tc-action-card-completed .tc-action-icon {
  background: linear-gradient(135deg, var(--sage-600), var(--sage-700));
}

.tc-action-card.tc-action-card-completed .tc-action-icon .material-symbols-outlined {
  color: white;
}

/* Responsive actions */
@media (max-width: 1024px) {
  .dashboard-actions-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-5);
  }
}

@media (max-width: 768px) {
  .dashboard-actions-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .tc-action-card {
    padding: var(--space-6);
    gap: var(--space-5);
  }

  .tc-action-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .tc-action-icon .material-symbols-outlined {
    font-size: 1.75rem;
  }

  .tc-action-card-title {
    font-size: 1rem;
  }

  .tc-action-card-description {
    font-size: 0.875rem;
  }

  .tc-action-arrow {
    width: 36px;
    height: 36px;
  }

  .tc-action-arrow .material-symbols-outlined {
    font-size: 1.25rem;
  }

  .tc-title-1 {
    font-size: 1.75rem;
  }

  .tc-body-lg {
    font-size: 1rem;
  }
}
