/* =====================================================================
   DASHBOARD COMPONENTS - Métriques, Cartes & Diagnostics
   =====================================================================

   RESPONSABILITÉS:
   ✓ Variables CSS complémentaires (ombres, transitions, polices)
   ✓ Spinners et états de loading
   ✓ Métriques globales (.dashboard-metrics-grid, .dashboard-metric-card)
     - Icônes et statistiques
     - Progress rings animés
   ✓ Cartes d'ateliers (.dashboard-ateliers-grid, .dashboard-atelier-card)
   ✓ Cartes de synthèse (.dashboard-syntheses-grid, .dashboard-synthese-card)
   ✓ Cartes d'actions (.dashboard-actions-grid, .dashboard-action-card)
     - Hiérarchie par priorité (high/medium/low)
     - Badges recommandés
     - Progression inline
   ✓ Diagnostics (profils, scores, alertes, cohérence)
   ✓ États vides et messages d'erreur
   ✓ Extensions de la sidebar (styles complémentaires)

   FICHIER COMPLÉMENTAIRE: dashboard-layout.css (structure & sidebar)

   TAILLE: 3315 lignes, 72KB
   DERNIÈRE MISE À JOUR: 10 novembre 2025
   ===================================================================== */

/* ================================================================
   VARIABLES CSS COMPLÉMENTAIRES - Scopées au dashboard
   ================================================================ */
.tedcraft-custom-page.dashboard-page {
    /* Extensions de couleurs (fallback sur variables de dashboard-layout.css) */
    --dashboard-sage-50: var(--sage-50, #f8fafc);
    --dashboard-sage-100: var(--sage-100, #f1f5f9);
    --dashboard-sage-200: var(--sage-200, #e2e8f0);
    --dashboard-sage-500: var(--sage-500, #6b7c5a);
    --dashboard-sage-600: var(--sage-600, #5a6b49);
    --dashboard-sage-700: var(--sage-700, #4a5a39);
    --dashboard-stone-400: var(--stone-400, #a8a29e);
    --dashboard-stone-500: var(--stone-500, #78716c);
    --dashboard-stone-600: var(--stone-600, #57534e);
    --dashboard-stone-700: var(--stone-700, #44403c);
    --dashboard-stone-800: var(--stone-800, #292524);
    --dashboard-blue-500: var(--blue-500, #3b82f6);
    --dashboard-blue-50: var(--blue-50, #eff6ff);
    --dashboard-blue-200: var(--blue-200, #bfdbfe);
    --dashboard-green-500: var(--green-500, #10b981);
    --dashboard-amber-500: var(--amber-500, #f59e0b);
    --dashboard-amber-100: var(--amber-100, #fef3c7);
    --dashboard-amber-600: var(--amber-600, #d97706);
    --dashboard-red-500: var(--red-500, #ef4444);
    --dashboard-purple-500: var(--purple-500, #8b5cf6);
    --dashboard-sage-300: var(--sage-300, #b7c4aa);
    --dashboard-sage-400: var(--sage-400, #97ad88);

    /* Ombres */
    --dashboard-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --dashboard-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --dashboard-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --dashboard-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Transitions et bordures */
    --dashboard-transition: all 0.2s ease-in-out;
    --dashboard-border-radius: 12px;
    --dashboard-border-radius-lg: 16px;

    /* Tailles de police */
    --dashboard-font-xs: 0.75rem;    /* 12px */
    --dashboard-font-sm: 0.875rem;   /* 14px */
    --dashboard-font-base: 1rem;     /* 16px */
    --dashboard-font-lg: 1.125rem;   /* 18px */
    --dashboard-font-xl: 1.25rem;    /* 20px */
    --dashboard-font-2xl: 1.5rem;    /* 24px */
    --dashboard-font-3xl: 2.25rem;   /* 36px */
}

/* ============================================================================
   SPINNER ET LOADING
   ============================================================================ */

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

@keyframes dashboardSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.modal-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: var(--dashboard-stone-600);
}

/* ============================================================================
   TITRES DE SECTIONS
   ============================================================================ */

.tc-title-1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dashboard-stone-800);
    margin: 0;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .tc-title-1 {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .tc-title-1 {
        font-size: 1.125rem;
    }
}

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

.dashboard-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.dashboard-metric-card {
    background: white;
    border-radius: var(--dashboard-border-radius);
    padding: 1.5rem;
    box-shadow: var(--dashboard-shadow-md);
    border: 1px solid var(--dashboard-sage-200);
    transition: var(--dashboard-transition);
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.metric-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--dashboard-sage-500), var(--dashboard-sage-600));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.metric-icon .material-symbols-outlined {
    font-size: 24px;
}

/* Contraste icônes sur fonds verts (sage) */
.atelier-btn-primary .material-symbols-outlined,
.tc-btn-refresh .material-symbols-outlined,
.tc-button-primary .material-symbols-outlined,
.action-card-icon .material-symbols-outlined,
.synthese-card-icon .material-symbols-outlined,
.tc-progress-icon .material-symbols-outlined,
.metric-icon .material-symbols-outlined {
    color: #fff !important;
}

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

.metric-title {
    font-size: var(--dashboard-font-sm);
    font-weight: 600;
    color: var(--dashboard-stone-600);
    margin-bottom: 0.25rem;
}

.metric-value {
    font-size: var(--dashboard-font-xl);
    font-weight: 700;
    color: var(--dashboard-stone-800);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.metric-subtitle {
    font-size: var(--dashboard-font-xs);
    color: var(--dashboard-stone-600);
}

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

/* Progress Ring */
.progress-ring {
    position: relative;
    display: inline-block;
}

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

.progress-ring-bg {
    fill: none;
    stroke: var(--dashboard-sage-200);
    stroke-width: 3;
}

.progress-ring-fill {
    fill: none;
    stroke: var(--dashboard-sage-500);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 157; /* 2π × 25 */
    stroke-dashoffset: 157;
    transition: stroke-dashoffset 1s ease-in-out;
}

.progress-ring-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--dashboard-sage-600);
}

/* ===== RESPONSIVE MÉTRIQUES ===== */

@media (max-width: 768px) {
    .dashboard-metrics-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 1rem;
    }

    .dashboard-metric-card {
        padding: 1rem;
    }

    .metric-title {
        font-size: 0.75rem;
    }

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

    .metric-subtitle {
        font-size: 0.6875rem;
    }

    .metric-icon .material-symbols-outlined {
        font-size: 20px;
    }

    .metric-visual .progress-ring svg {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .dashboard-metrics-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .dashboard-metric-card {
        padding: 0.875rem;
    }

    .metric-title {
        font-size: 0.6875rem;
    }

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

    .metric-subtitle {
        font-size: 0.625rem;
    }

    .metric-icon {
        width: 32px;
        height: 32px;
    }

    .metric-icon .material-symbols-outlined {
        font-size: 18px;
    }
}

/* ============================================================================
   GRILLE DES ATELIERS
   ============================================================================ */

.dashboard-ateliers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.dashboard-atelier-card {
    background: white;
    border-radius: var(--dashboard-border-radius);
    border: 1px solid var(--dashboard-sage-200);
    box-shadow: var(--dashboard-shadow-md);
    transition: var(--dashboard-transition);
    overflow: hidden;
    position: relative;
}

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

.atelier-card-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--dashboard-sage-50) 0%, white 100%);
    border-bottom: 1px solid var(--dashboard-sage-200);
    position: relative;
}

.atelier-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dashboard-stone-800);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

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

.atelier-card-body {
    padding: 1.5rem;
}

.atelier-card-footer {
    padding: 1rem 1.5rem;
    background: var(--dashboard-sage-50);
    border-top: 1px solid var(--dashboard-sage-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Badge de statut */
.atelier-status-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.atelier-status-badge.completed {
    background: var(--dashboard-green-500);
    color: white;
}

.atelier-status-badge.in-progress {
    background: var(--dashboard-blue-500);
    color: white;
}

.atelier-status-badge.not-started {
    background: var(--dashboard-sage-200);
    color: var(--dashboard-stone-600);
}

/* Progression */
.atelier-progression {
    margin: 1rem 0;
}

.atelier-progression-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.atelier-progression-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--dashboard-stone-600);
}

.atelier-progression-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dashboard-sage-600);
}

.atelier-progression-bar {
    width: 100%;
    height: 6px;
    background: var(--dashboard-sage-200);
    border-radius: 3px;
    overflow: hidden;
}

.atelier-progression-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--dashboard-sage-500), var(--dashboard-sage-600));
    border-radius: 3px;
    transition: width 0.8s ease-out;
    width: 0%;
}

/* Statistiques de l'atelier */
.atelier-stats {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
}

.atelier-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--dashboard-stone-600);
}

.atelier-stat .material-symbols-outlined {
    font-size: 16px;
    color: var(--dashboard-sage-500);
}

/* Boutons d'action */
.atelier-actions {
    display: flex;
    gap: 0.75rem;
}

.atelier-btn {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: var(--dashboard-transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    min-height: 44px; /* cible tactile minimale */
}

.atelier-btn-primary {
    background: var(--dashboard-sage-500);
    color: white;
}

.atelier-btn-primary:hover {
    background: var(--dashboard-sage-600);
    transform: translateY(-1px);
}

.atelier-btn-secondary {
    background: white;
    color: var(--dashboard-sage-600);
    border: 1px solid var(--dashboard-sage-300);
}

.atelier-btn-secondary:hover {
    background: var(--dashboard-sage-50);
    border-color: var(--dashboard-sage-400);
}

.atelier-btn .material-symbols-outlined {
    font-size: 16px;
}

/* ============================================================================
   SYNTHÈSES
   ============================================================================ */

.dashboard-syntheses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.dashboard-synthese-card {
    background: white;
    border-radius: var(--dashboard-border-radius);
    border: 1px solid var(--dashboard-sage-200);
    box-shadow: var(--dashboard-shadow-md);
    padding: 1.5rem;
    transition: var(--dashboard-transition);
}

.dashboard-synthese-card:hover {
    box-shadow: var(--dashboard-shadow-lg);
}

.synthese-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.synthese-card-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--dashboard-blue-500), var(--dashboard-sage-500));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.synthese-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dashboard-stone-800);
}

.synthese-card-content {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--dashboard-stone-600);
}

/* ============================================================================
   ACTIONS RECOMMANDÉES - V3 UX 2025
   ============================================================================ */

.dashboard-actions-grid {
    display: grid;
    /* Grid responsive: mobile 1 col, tablette 2 cols, desktop 2-3 cols max */
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    max-width: 1400px;
}

/* Carte d'action de base */
.dashboard-action-card {
    background: white;
    border-radius: var(--dashboard-border-radius-lg);
    border: 1px solid var(--dashboard-sage-200);
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.dashboard-action-card:active {
    transform: translateY(0);
}

/* ===== HIÉRARCHIE VISUELLE PAR PRIORITÉ ===== */

/* Priorité HAUTE: Carte plus grande et mise en avant */
.dashboard-action-card[data-priority="high"] {
    grid-column: span 2;
    background: linear-gradient(135deg,
        rgba(107, 124, 90, 0.03) 0%,
        rgba(255,255,255,0.98) 100%);
    border: 2px solid var(--dashboard-sage-400);
    box-shadow: 0 4px 12px rgba(107, 124, 90, 0.12);
}

.dashboard-action-card[data-priority="high"]:hover {
    box-shadow: 0 8px 24px rgba(107, 124, 90, 0.2);
    border-color: var(--dashboard-sage-500);
}

/* Priorité MEDIUM: Style standard */
.dashboard-action-card[data-priority="medium"] {
    border-color: var(--dashboard-sage-200);
}

/* Priorité LOW: Style atténué */
.dashboard-action-card[data-priority="low"] {
    border-color: var(--dashboard-stone-200);
    opacity: 0.92;
}

.dashboard-action-card[data-priority="low"]:hover {
    opacity: 1;
}

/* ===== BADGE RECOMMANDÉ ===== */

.tc-action-badge-recommended {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    background: linear-gradient(135deg, var(--dashboard-sage-500), var(--dashboard-sage-600));
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(107, 124, 90, 0.25);
    z-index: 10;
}

.tc-action-badge-recommended .material-symbols-outlined {
    font-size: 1rem;
}

/* ===== HEADER DE LA CARTE ===== */

.tc-action-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

/* Icône standard */
.tc-action-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--dashboard-sage-500), var(--dashboard-sage-600));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 2px 8px rgba(107, 124, 90, 0.2);
}

.tc-action-icon .material-symbols-outlined {
    font-size: 24px;
}

/* Icône enhanced (avec progression) */
.tc-action-icon-enhanced {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--dashboard-sage-500), var(--dashboard-sage-600));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    box-shadow: 0 4px 12px rgba(107, 124, 90, 0.25);
}

.tc-action-icon-enhanced .material-symbols-outlined {
    font-size: 28px;
}

.tc-icon-progress-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    background: white;
    color: var(--dashboard-sage-600);
    font-size: 0.625rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 8px;
    border: 2px solid var(--dashboard-sage-500);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* ===== MÉTADONNÉES ===== */

.tc-action-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.tc-action-meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    background: var(--dashboard-sage-50);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--dashboard-stone-700);
}

.tc-action-meta-item .material-symbols-outlined {
    font-size: 14px;
    color: var(--dashboard-sage-600);
}

/* ===== CONTENU DE LA CARTE ===== */

.tc-action-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tc-action-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dashboard-stone-800);
    line-height: 1.3;
    margin: 0;
}

.dashboard-action-card[data-priority="high"] .tc-action-card-title {
    font-size: 1.25rem;
}

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

/* ===== BARRE DE PROGRESSION INLINE ===== */

.tc-action-progress {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.tc-progress-bar-inline {
    flex: 1;
    height: 6px;
    background: var(--dashboard-stone-200);
    border-radius: 3px;
    overflow: hidden;
}

.tc-progress-fill-inline {
    height: 100%;
    background: linear-gradient(90deg, var(--dashboard-sage-500), var(--dashboard-sage-600));
    border-radius: 3px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.tc-progress-label-inline {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--dashboard-sage-600);
    white-space: nowrap;
}

/* ===== FOOTER DE LA CARTE ===== */

.tc-action-footer {
    margin-top: auto;
    padding-top: 0.5rem;
    border-top: 1px solid var(--dashboard-stone-100);
}

.tc-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.625rem 1rem;
    background: var(--dashboard-sage-50);
    border: 1px solid var(--dashboard-sage-200);
    border-radius: 8px;
    color: var(--dashboard-sage-700);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tc-action-btn:hover {
    background: var(--dashboard-sage-100);
    border-color: var(--dashboard-sage-400);
    color: var(--dashboard-sage-800);
}

.tc-action-btn .material-symbols-outlined {
    font-size: 18px;
}

.dashboard-action-card[data-priority="high"] .tc-action-btn {
    background: var(--dashboard-sage-500);
    border-color: var(--dashboard-sage-600);
    color: white;
}

.dashboard-action-card[data-priority="high"] .tc-action-btn:hover {
    background: var(--dashboard-sage-600);
    border-color: var(--dashboard-sage-700);
}

.action-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.action-card-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: var(--dashboard-sage-500);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

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

.action-card-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dashboard-stone-800);
    margin-bottom: 0.25rem;
}

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

/* ===== RESPONSIVE CARTES D'ACTION ===== */

@media (max-width: 1024px) {
    .dashboard-action-card[data-priority="high"] {
        grid-column: span 1;
    }

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

    .dashboard-action-card[data-priority="high"] .tc-action-card-title {
        font-size: 1.125rem;
    }
}

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

    .dashboard-action-card {
        padding: 1.25rem;
    }

    .tc-action-header {
        flex-direction: column;
        gap: 0.75rem;
    }

    .tc-action-icon-enhanced {
        width: 48px;
        height: 48px;
    }

    .tc-action-icon-enhanced .material-symbols-outlined {
        font-size: 22px;
    }

    .tc-icon-progress-badge {
        font-size: 0.625rem;
        padding: 0.125rem 0.25rem;
    }

    .tc-action-meta {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .tc-action-meta-item {
        font-size: 0.75rem;
    }

    .tc-action-card-title {
        font-size: 0.9375rem;
        line-height: 1.4;
    }

    .dashboard-action-card[data-priority="high"] .tc-action-card-title {
        font-size: 1rem;
    }

    .tc-action-card-description {
        font-size: 0.8125rem;
        line-height: 1.6;
    }

    .tc-action-progress {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .tc-progress-label-inline {
        text-align: right;
    }

    .tc-action-footer {
        margin-top: 0.5rem;
    }

    .tc-action-btn {
        padding: 0.75rem 1rem;
        font-size: 0.8125rem;
    }

    .tc-action-badge-recommended {
        position: static;
        margin-bottom: 0.5rem;
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    .dashboard-action-card {
        padding: 1rem;
    }

    .tc-action-icon,
    .tc-action-icon-enhanced {
        width: 40px;
        height: 40px;
    }

    .tc-action-icon .material-symbols-outlined,
    .tc-action-icon-enhanced .material-symbols-outlined {
        font-size: 20px;
    }

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

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

    .tc-action-btn {
        padding: 0.625rem 0.875rem;
        font-size: 0.75rem;
    }
}

/* ============================================================================
   ÉTATS SPÉCIAUX
   ============================================================================ */

.dashboard-empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--dashboard-stone-600);
}

.dashboard-empty-state .material-symbols-outlined {
    font-size: 3rem;
    color: var(--dashboard-sage-400);
    margin-bottom: 1rem;
}

.dashboard-empty-state h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dashboard-stone-700);
}

.dashboard-empty-state p {
    font-size: 0.875rem;
    line-height: 1.5;
}

/* États d'erreur */
.error-icon {
    color: var(--dashboard-red-500) !important;
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 1024px) {
    /* Sur tablette, les cartes priorité haute ne prennent plus 2 colonnes */
    .dashboard-action-card[data-priority="high"] {
        grid-column: span 1;
    }

    .dashboard-actions-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    .dashboard-metrics-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .dashboard-ateliers-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .dashboard-syntheses-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .dashboard-actions-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Ajustements des cartes d'action sur mobile */
    .dashboard-action-card {
        padding: 1.25rem;
    }

    .tc-action-icon-enhanced {
        width: 48px;
        height: 48px;
    }

    .tc-action-icon-enhanced .material-symbols-outlined {
        font-size: 24px;
    }

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

    .dashboard-action-card[data-priority="high"] .tc-action-card-title {
        font-size: 1.125rem;
    }

    .tc-action-badge-recommended {
        top: 0.75rem;
        right: 0.75rem;
        padding: 0.25rem 0.5rem;
        font-size: 0.6875rem;
    }
}
    
    .dashboard-metric-card {
        padding: 1rem;
    }
    
    .atelier-card-header,
    .atelier-card-body {
        padding: 1rem;
    }
    
    .atelier-actions {
        flex-direction: column;
    }
    
    .atelier-btn {
        justify-content: center;
        width: 100%; /* pleine largeur sur mobile pour meilleure ergonomie */
    }
}

@media (max-width: 480px) {
    .metric-value {
        font-size: 1.25rem;
    }
    
    .dashboard-metric-card {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .metric-visual {
        order: -1;
    }
}

/* dashboard-extensions.css - Styles spécifiques pour la sidebar et le nouveau layout */

/* ============================================================================
   LAYOUT PRINCIPAL AVEC SIDEBAR
   ============================================================================ */

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

/* ============================================================================
   SIDEBAR
   ============================================================================ */

.tc-dashboard-sidebar {
    width: 280px;
    background: white;
    border-right: 1px solid var(--sage-200);
    display: flex;
    flex-direction: column;
    position: sticky; /* STICKY pour suivre le scroll */
    top: 95px; /* Colle à 95px du haut (juste après le header) */
    align-self: flex-start;
    /* PAS de height fixe - elle grandit avec son contenu */
    z-index: 10; /* SOUS le header (1000) */
    transition: transform 0.3s ease;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.05);
}

/* Header utilisateur */
.tc-sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--sage-200);
    background: linear-gradient(135deg, var(--sage-50) 0%, white 100%);
}

.tc-user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

.tc-avatar-initials {
    color: white;
    font-weight: 600;
    font-size: 1rem;
    font-family: var(--font-sans);
}

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

.tc-user-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--stone-800);
    margin: 0;
    font-family: var(--font-sans);
}

.tc-user-status {
    font-size: 0.75rem;
    color: var(--stone-600);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-family: var(--font-sans);
}

.tc-user-status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--dashboard-green-500);
}

/* Navigation */
.tc-sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
}

/* Items de navigation */
.tc-nav-item {
    display: flex;
    align-items: center;
    padding: 0.875rem 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    color: var(--stone-700);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 500;
    min-height: 44px; /* cible tactile minimale */
}

.tc-nav-item:hover {
    background: var(--sage-50);
    color: var(--sage-700);
}

.tc-nav-item:focus-visible,
.tc-nav-header:focus-visible,
.tc-btn-toggle-sidebar:focus-visible,
.atelier-btn:focus-visible {
    outline: 2px solid var(--sage-500, #6b7c5a);
    outline-offset: 2px;
}

.tc-nav-item.active {
    background: linear-gradient(90deg, var(--sage-50) 0%, rgba(107, 124, 90, 0.05) 100%);
    color: var(--sage-700);
}

.tc-nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--sage-500);
}

.tc-nav-item .material-symbols-outlined {
    font-size: 20px;
    margin-right: 0.75rem;
    color: var(--stone-600);
}

.tc-nav-item.active .material-symbols-outlined {
    color: var(--sage-600);
}

/* Groupes de navigation */
.tc-nav-group {
    margin-bottom: 0.25rem;
}

.tc-nav-header {
    display: flex;
    align-items: center;
    padding: 0.875rem 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    color: var(--stone-700);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600; /* plus marqué */
    min-height: 44px; /* cible tactile minimale */
    border-radius: 8px; /* coins doux */
    border-left: 3px solid transparent; /* accent discret */
}

.tc-nav-header:hover {
    background: linear-gradient(135deg, var(--sage-50), #fff);
    color: var(--sage-700);
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.tc-nav-header .material-symbols-outlined {
    font-size: 20px;
    color: var(--stone-600);
}

.tc-nav-header .material-symbols-outlined:first-child {
    margin-right: 0.75rem;
}

.tc-nav-label {
    flex: 1;
}

.tc-nav-toggle {
    transition: transform 0.2s ease;
    margin-left: auto;
}

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

/* État développé: accent visuel classe et pro */
.tc-nav-group.expanded .tc-nav-header {
    background: linear-gradient(135deg, var(--sage-50), #fff);
    border-left-color: var(--sage-500);
    box-shadow: var(--dashboard-shadow-sm);
}

/* Contenu des groupes */
.tc-nav-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

/* Nettoyage: masquer badges textuels si présents */
.tc-nav-badge { display: none !important; }

.tc-nav-group.expanded .tc-nav-content {
    max-height: 500px;
    overflow-y: auto;
}

.tc-nav-subitem {
    display: flex;
    align-items: center;
    padding: 0.625rem 1.5rem 0.625rem 3.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--stone-600);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    position: relative;
}

.tc-nav-subitem:hover {
    background: var(--sage-50);
    color: var(--sage-700);
}

.tc-nav-subitem.active {
    color: var(--sage-700);
    font-weight: 500;
}

.tc-nav-subitem.active::before {
    content: '';
    position: absolute;
    left: 2.5rem;
    width: 4px;
    height: 4px;
    background: var(--sage-500);
    border-radius: 50%;
}

/* ✅ NOUVEAU: Structure améliorée pour la sidebar */
.tc-nav-subitem {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--stone-600);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    position: relative;
    border-left: 3px solid transparent;
}

.tc-nav-subitem:hover {
    background: var(--sage-50);
    color: var(--sage-700);
}

.tc-nav-subitem.active {
    color: var(--sage-700);
    font-weight: 500;
    border-left-color: var(--sage-500);
}

/* Icônes de statut */
.tc-nav-status-icon {
    font-size: 1rem;
    flex-shrink: 0;
    width: 1.25rem;
    text-align: center;
}

/* Titres */
.tc-nav-title {
    flex: 1;
    line-height: 1.3;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Badges de statut améliorés */
.tc-nav-badge {
    padding: 0.25rem 0.5rem;
    border-radius: var(--dashboard-border-radius);
    font-size: var(--dashboard-font-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    min-height: 1.25rem;
}

.tc-badge-not-started {
    background: var(--dashboard-stone-400);
    color: white;
}

.tc-badge-in-progress {
    background: var(--dashboard-amber-500);
    color: white;
}

.tc-badge-completed {
    background: var(--dashboard-green-500);
    color: white;
}

/* Badge spécial pour l'IA */
.tc-nav-ai-badge {
    background: var(--dashboard-purple-500);
    color: white;
    padding: 0.125rem 0.25rem;
    border-radius: 6px;
    font-size: var(--dashboard-font-xs);
    margin-left: 0.25rem;
    opacity: 0.9;
    transition: var(--dashboard-transition);
}

.tc-nav-ai-badge:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Statuts visuels par couleur */
.tc-nav-subitem.not-started .tc-nav-status-icon {
    color: var(--dashboard-stone-400);
}

.tc-nav-subitem.in-progress .tc-nav-status-icon {
    color: var(--dashboard-amber-500);
}

.tc-nav-subitem.completed .tc-nav-status-icon {
    color: var(--dashboard-green-500);
}

/* Hiérarchie des dispositifs */
.tc-nav-dispositif-group {
    margin-bottom: 0.5rem;
}

.tc-nav-dispositif-header {
    background: var(--sage-50);
    font-weight: 600;
    border-bottom: 1px solid var(--sage-200);
}

.tc-nav-sous-module {
    padding-left: 3rem !important;
    background: rgba(248, 250, 252, 0.5);
    border-left: 2px solid var(--sage-100);
    font-size: 0.8rem;
}

.tc-nav-sous-module:hover {
    background: var(--sage-100);
}

/* États désactivés */
.tc-nav-subitem.disabled {
    color: var(--dashboard-stone-400);
    cursor: not-allowed;
    font-style: italic;
}

/* Footer sidebar */
.tc-sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--sage-200);
    background: var(--sage-50);
}

/* ============================================================================
   VUE DÉTAIL ATELIER ENRICHIE
   ============================================================================ */

.tc-detail-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* En-tête enrichi */
.tc-detail-header-enhanced {
    background: linear-gradient(135deg, var(--dashboard-sage-50), white);
    border-radius: var(--dashboard-border-radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    box-shadow: var(--dashboard-shadow-md);
    border: 1px solid var(--dashboard-sage-200);
}

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

h1.tc-detail-title,
h2.tc-detail-title,
.tc-detail-title {
    font-size: clamp(1.125rem, 0.7vw + 1rem, 1.375rem); /* H1/H2 harmonisés et plus compacts */
    font-weight: 700;
    color: var(--dashboard-stone-800);
    margin: 0 0 0.5rem 0;
    line-height: 1.25;
}

.tc-detail-description {
    font-size: 1rem; /* plus discret */
    color: var(--dashboard-stone-600);
    margin: 0 0 1rem 0;
    line-height: 1.5;
}

.tc-detail-status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tc-detail-status-badge.not-started {
    background: var(--dashboard-sage-100);
    color: var(--dashboard-stone-600);
}

.tc-detail-status-badge.in-progress {
    background: var(--dashboard-amber-500);
    color: white;
}

.tc-detail-status-badge.almost-done {
    background: var(--dashboard-blue-500);
    color: white;
}

.tc-detail-status-badge.completed {
    background: var(--dashboard-green-500);
    color: white;
}

/* Section progression */
.tc-detail-progress-section {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

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

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

.tc-progress-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

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

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

/* Texte centré dans le cercle de progression uniquement */
.tc-progress-circle .tc-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.tc-progress-percent {
    font-size: 1rem; /* plus discret pour un rendu pro */
    font-weight: 700;
    color: var(--dashboard-stone-800);
}

.tc-progress-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
}

.tc-progress-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: var(--dashboard-sage-50);
    border: 1px solid var(--dashboard-sage-200);
    border-radius: 10px;
    padding: 0.75rem 1rem;
}

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

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

/* Section insights IA */
.tc-ai-insights-section {
    background: white;
    border-radius: var(--dashboard-border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--dashboard-shadow-md);
    border: 1px solid var(--dashboard-sage-200);
}

.tc-section-header {
    margin-bottom: 1.5rem;
}

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

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

/* Fallback d'insights – message de progression élégant */
.tc-progress-message {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--sage-50);
    border: 1px solid var(--sage-200);
    border-radius: 12px;
    padding: 1rem;
}

.tc-progress-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--sage-500), var(--sage-600));
    color: #fff;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.tc-progress-content p {
    margin: 0 0 0.5rem 0;
    color: var(--stone-700);
    line-height: 1.6;
}

.tc-progress-hint {
    font-size: 0.8125rem;
    color: var(--stone-600);
    margin-bottom: 0.5rem;
}

.tc-progress-content small {
    color: var(--stone-600);
}

.tc-insight-card {
    background: var(--dashboard-sage-50);
    border-radius: var(--dashboard-border-radius);
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    border-left: 4px solid var(--dashboard-sage-500);
    transition: var(--dashboard-transition);
}

.tc-insight-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--dashboard-shadow-md);
}

.tc-insight-card.progress {
    border-left-color: var(--dashboard-amber-500);
}

.tc-insight-card.engagement {
    border-left-color: var(--dashboard-green-500);
}

.tc-insight-card.reflection {
    border-left-color: var(--dashboard-blue-500);
}

.tc-insight-card.awareness {
    border-left-color: var(--dashboard-sage-500);
}

/* Styles pour les recommandations */
.tc-insight-card.recommendation {
    border-left-color: var(--dashboard-amber-500);
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.tc-insight-card.recommendation .tc-insight-icon {
    background: var(--dashboard-amber-100);
    color: var(--dashboard-amber-600);
}

/* Bouton de régénération des insights */
.tc-button-regenerate {
    background: var(--sage-50);
    border: 1px solid var(--sage-200);
    border-radius: 6px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--sage-600);
    font-size: 0.875rem;
}

.tc-button-regenerate:hover {
    background: var(--sage-100);
    color: var(--sage-700);
    transform: rotate(180deg);
}

.tc-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.tc-insight-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--dashboard-shadow-sm);
}

.tc-insight-icon .material-symbols-outlined {
    font-size: 20px;
    color: var(--dashboard-stone-600);
}

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

.tc-insight-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dashboard-stone-800);
    margin: 0 0 0.5rem 0;
}

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

/* Section recommandations */
.tc-recommendations {
    background: white;
    border-radius: var(--dashboard-border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--dashboard-shadow-md);
    border: 1px solid var(--dashboard-sage-200);
}

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

.tc-recommendations-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.tc-recommendations-list li {
    font-size: 0.875rem;
    color: var(--dashboard-stone-700);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--dashboard-sage-200);
    position: relative;
    padding-left: 1.5rem;
}

.tc-recommendations-list li:last-child {
    border-bottom: none;
}

.tc-recommendations-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--dashboard-sage-500);
    font-weight: bold;
}

/* Section réponses */
.tc-responses-section {
    background: white;
    border-radius: var(--dashboard-border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--dashboard-shadow-md);
    border: 1px solid var(--dashboard-sage-200);
}

.tc-responses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.tc-response-item {
    background: var(--dashboard-sage-50);
    border-radius: var(--dashboard-border-radius);
    padding: 1.5rem;
    border: 1px solid var(--dashboard-sage-200);
}

.tc-response-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dashboard-stone-700);
    margin-bottom: 0.75rem;
    text-transform: none; /* conserver la casse naturelle (phrase) */
}

.tc-response-value {
    font-size: 1rem;
    color: var(--dashboard-stone-800);
    line-height: 1.5;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--dashboard-sage-200);
    min-height: 60px;
}

/* ✅ NOUVEAU: Styles pour les insights dispositifs dans la sidebar */
.tc-nav-ai-badge {
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    flex-shrink: 0;
    margin-left: auto;
}

.tc-nav-device-insights {
    background: var(--sage-50);
    margin: 0.5rem 1rem;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--sage-200);
}

.tc-nav-insights-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--sage-700);
    margin-bottom: 0.75rem;
}

.tc-nav-insights-header .material-symbols-outlined {
    font-size: 1.1rem;
    color: var(--sage-600);
}

.tc-nav-insights-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tc-nav-insight-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem;
    background: white;
    border-radius: 6px;
    border: 1px solid var(--sage-200);
}

.tc-nav-insight-item .material-symbols-outlined {
    font-size: 1rem;
    color: var(--sage-500);
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.tc-nav-insight-content {
    flex: 1;
    font-size: 0.75rem;
}

.tc-nav-insight-title {
    font-weight: 600;
    color: var(--stone-800);
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.tc-nav-insight-message {
    color: var(--stone-600);
    line-height: 1.3;
}

/* ✅ NOUVEAU: Styles pour la vue détaillée des dispositifs */
.tc-modules-section {
    background: white;
    border-radius: var(--dashboard-border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--dashboard-shadow-md);
    border: 1px solid var(--dashboard-sage-200);
}

.tc-modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.tc-module-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid var(--sage-200);
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.tc-module-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: var(--sage-300);
}

.tc-module-card.completed {
    border-color: var(--green-300);
    background: linear-gradient(135deg, #F0FDF4, #FEFEFE);
}

.tc-module-card.in-progress {
    border-color: var(--blue-300);
    background: linear-gradient(135deg, #EFF6FF, #FEFEFE);
}

.tc-module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.tc-module-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tc-status-icon {
    font-size: 1rem;
}

.tc-status-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tc-ai-indicator {
    font-size: 1.2rem;
    padding: 0.25rem;
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    border-radius: 50%;
    filter: drop-shadow(0 2px 4px rgba(139, 92, 246, 0.3));
}

.tc-module-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--stone-800);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.tc-module-progression {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tc-module-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.5rem;
}

.tc-progress-bar {
    flex: 1;
    height: 8px;
    background: var(--sage-200);
    border-radius: 4px;
    overflow: hidden;
}

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

.tc-progress-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--sage-700);
    min-width: 40px;
}

.tc-module-insights {
    background: var(--sage-50);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--sage-200);
    margin-top: 1rem;
}

.tc-mini-insight {
    font-size: 0.8rem;
    color: var(--stone-700);
    line-height: 1.4;
}

.tc-mini-insight strong {
    color: var(--stone-800);
}

.tc-empty-responses {
    text-align: center;
    padding: 3rem;
    color: var(--dashboard-stone-500);
    font-style: italic;
}

/* Actions */
.tc-detail-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.tc-button {
    padding: 0.875rem 1.5rem;
    border-radius: var(--dashboard-border-radius);
    border: none;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--dashboard-transition);
    text-decoration: none;
    display: inline-block;
}

.tc-button-primary {
    background: linear-gradient(135deg, var(--dashboard-sage-500), var(--dashboard-sage-600));
    color: white;
}

.tc-button-primary:hover {
    background: linear-gradient(135deg, var(--dashboard-sage-600), var(--dashboard-sage-700));
    transform: translateY(-2px);
    box-shadow: var(--dashboard-shadow-md);
}

.tc-button-secondary {
    background: white;
    color: var(--dashboard-stone-700);
    border: 2px solid var(--dashboard-sage-200);
}

.tc-button-secondary:hover {
    background: var(--dashboard-sage-50);
    border-color: var(--dashboard-sage-300);
}

/* Responsive */
@media (max-width: 768px) {
    .tc-detail-wrapper {
        padding: 1rem;
    }
    
    .tc-detail-header-enhanced {
        flex-direction: column;
        text-align: center;
    }
    
    .tc-detail-progress-section {
        justify-content: center;
    }
    
    .tc-insights-grid {
        grid-template-columns: 1fr;
    }
    
    .tc-responses-grid {
        grid-template-columns: 1fr;
    }
    
    .tc-detail-actions {
        flex-direction: column;
    }
}

.tc-sidebar-action {
    width: 100%;
    padding: 0.75rem;
    background: white;
    border: 1px solid var(--sage-300);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--stone-700);
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.tc-sidebar-action .material-symbols-outlined {
    font-size: 18px;
}

/* ============================================================================
   ZONE PRINCIPALE
   ============================================================================ */

.tc-dashboard-main {
    flex: 1;
    /* margin-left supprimé : la sidebar est en sticky dans le flex wrapper */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header mobile/desktop */
.tc-dashboard-header {
    display: none;
    padding: 1rem 1.5rem;
    background: white;
    border-bottom: 1px solid var(--sage-200);
    align-items: center;
    gap: 1rem;
}

.tc-btn-toggle-sidebar {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.tc-btn-toggle-sidebar:hover {
    background: var(--sage-50);
}

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

.tc-btn-refresh {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--sage-500);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tc-btn-refresh:hover {
    background: var(--sage-600);
}

/* Contenu */
.tc-dashboard-content {
    flex: 1;
    max-width: 1400px; /* Largeur max pour confort lecture */
    margin: 0 auto; /* Centrer */
    padding: 2rem; /* Espace sur les côtés */
}

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

.tc-content-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* États de chargement et erreur */
.tc-dashboard-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.tc-dashboard-error {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

/* Overlay mobile */
.tc-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* ============================================================================
   SECTION DÉTAIL (Questions/Réponses, Graphiques, etc.)
   ============================================================================ */

#detail-container {
    max-width: 1200px;
    margin: 0 auto;
}

.tc-detail-header {
    background: white;
    border-radius: var(--dashboard-border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--dashboard-shadow-md);
    border: 1px solid var(--sage-200);
}

h1.tc-detail-title,
h2.tc-detail-title,
.tc-detail-title {
    font-size: clamp(1.125rem, 0.7vw + 1rem, 1.375rem);
    font-weight: 600;
    color: var(--stone-800);
    margin-bottom: 0.5rem;
    font-family: var(--font-sans);
}

.tc-detail-meta {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

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

/* Questions et réponses */
.tc-questions-container {
    background: white;
    border-radius: var(--dashboard-border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--dashboard-shadow-md);
    border: 1px solid var(--sage-200);
}

.tc-question-group {
    margin-bottom: 2rem;
}

.tc-question-group:last-child {
    margin-bottom: 0;
}

.tc-question-group-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--stone-800);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--sage-200);
    font-family: var(--font-sans);
}

.tc-question-item {
    margin-bottom: 1.5rem;
}

.tc-question-label {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--stone-700);
    margin-bottom: 0.5rem;
    display: block;
    font-family: var(--font-sans);
}

.tc-question-response {
    padding: 0.75rem 1rem;
    background: var(--sage-50);
    border-radius: 8px;
    border: 1px solid var(--sage-200);
    font-size: 0.875rem;
    color: var(--stone-600);
    line-height: 1.6;
}

.tc-question-response.empty {
    background: var(--stone-50);
    color: var(--stone-500);
    font-style: italic;
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 1024px) {
    .tc-dashboard-sidebar {
        transform: translateX(-100%);
    }
    
    .tc-dashboard-sidebar.active {
        transform: translateX(0);
    }
    
    .tc-dashboard-main {
        margin-left: 0;
    }
    
    .tc-dashboard-header {
        display: flex;
    }
    
    .tc-btn-toggle-sidebar {
        display: flex;
    }
}

@media (max-width: 768px) {
    .tc-dashboard-sidebar {
        width: 260px;
    }
    
    .tc-dashboard-content {
        padding: 1rem;
    }
    
    .tc-page-title {
        font-size: 1.125rem; /* mobile: plus compact */
    }
}

@media (max-width: 480px) {
    .tc-dashboard-sidebar {
        width: 100%;
    }
    
    .tc-btn-refresh span:last-child {
        display: none;
    }
}


.tc-synthese-structured {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tc-synthese-section {
    padding: 1.25rem;
    background: var(--sage-50);
    border-radius: 8px;
    border-left: 3px solid var(--sage-400);
}

.tc-synthese-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--sage-700);
    margin-bottom: 0.75rem;
    font-family: var(--font-sans);
}

.tc-synthese-section p {
    color: var(--stone-700);
    line-height: 1.6;
    margin: 0;
}

.tc-synthese-section ul {
    margin: 0;
    padding-left: 1.5rem;
}

.tc-synthese-section li {
    color: var(--stone-700);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

@media print {
    /* Masquer tout sauf le contenu à imprimer */
    body > *:not(.print-container) {
        display: none !important;
    }
    
    .print-container {
        position: static !important;
        left: 0 !important;
        width: 100% !important;
    }
    
    /* Forcer les styles pour l'impression */
    .pdf-export {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 20px;
    }
    
    /* Éviter les coupures de page */
    .pdf-section,
    .pdf-atelier {
        page-break-inside: avoid;
    }
    
    /* Nouvelle page pour chaque section principale */
    .pdf-section {
        page-break-before: auto;
    }
}

/* ============================================================================
   MODULES INTERACTIFS - STYLES DASHBOARD MODAL
   ============================================================================ */

.module-item {
    border-left: 4px solid var(--dashboard-purple-500);
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.02), transparent);
}

.module-item .question-label {
    color: var(--dashboard-purple-500);
    font-weight: 600;
}

.module-item .material-symbols-outlined {
    margin-right: 0.5rem;
    color: var(--dashboard-purple-500);
}

/* Timeline Module */
.module-timeline {
    background: var(--dashboard-sage-50);
    border: 1px solid var(--dashboard-sage-200);
    border-radius: var(--dashboard-border-radius);
    padding: 1rem;
    margin: 0.5rem 0;
}

.module-timeline h4 {
    color: var(--dashboard-stone-800);
    font-size: var(--dashboard-font-base);
    margin: 0 0 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.module-timeline h4::before {
    content: '⏱️';
    font-size: var(--dashboard-font-lg);
}

.timeline-preview {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.timeline-item-preview {
    padding: 0.5rem;
    background: white;
    border-radius: 8px;
    border-left: 3px solid var(--dashboard-amber-500);
    font-size: var(--dashboard-font-sm);
}

.timeline-item-preview strong {
    color: var(--dashboard-stone-800);
    display: block;
    margin-bottom: 0.25rem;
}

/* Actions Module */
.module-actions {
    background: var(--dashboard-blue-50);
    border: 1px solid var(--dashboard-blue-200);
    border-radius: var(--dashboard-border-radius);
    padding: 1rem;
    margin: 0.5rem 0;
}

.module-actions h4 {
    color: var(--dashboard-stone-800);
    font-size: var(--dashboard-font-base);
    margin: 0 0 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.module-actions h4::before {
    content: '⚡';
    font-size: var(--dashboard-font-lg);
}

.actions-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.actions-list li {
    padding: 0.375rem 0.75rem;
    background: white;
    border-radius: 6px;
    border-left: 3px solid var(--dashboard-blue-500);
    font-size: var(--dashboard-font-sm);
    color: var(--dashboard-stone-700);
}

.actions-list li em {
    color: var(--dashboard-stone-500);
    font-style: normal;
    opacity: 0.8;
}

/* Structured Response */
.structured-response {
    background: var(--dashboard-sage-50);
    border: 1px solid var(--dashboard-sage-200);
    border-radius: var(--dashboard-border-radius);
    padding: 1rem;
    margin: 0.5rem 0;
}

.response-field {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.375rem 0;
    border-bottom: 1px solid var(--dashboard-sage-200);
    font-size: var(--dashboard-font-sm);
}

.response-field:last-child {
    border-bottom: none;
}

.response-field strong {
    color: var(--dashboard-stone-800);
    min-width: 120px;
    flex-shrink: 0;
}

.response-field span {
    color: var(--dashboard-stone-600);
}

/* Response Lists */
.response-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
    background: var(--dashboard-sage-50);
    border-radius: var(--dashboard-border-radius);
    overflow: hidden;
}

.response-list li {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--dashboard-sage-200);
    font-size: var(--dashboard-font-sm);
    color: var(--dashboard-stone-700);
    position: relative;
}

.response-list li:last-child {
    border-bottom: none;
}

.response-list li::before {
    content: '•';
    color: var(--dashboard-sage-500);
    font-weight: bold;
    position: absolute;
    left: 0.5rem;
}

.response-list li {
    padding-left: 1.75rem;
}

/* Expandable Responses */
.response-expandable {
    position: relative;
}

.response-expand-btn {
    background: var(--dashboard-sage-500);
    color: white;
    border: none;
    padding: 0.375rem 0.75rem;
    border-radius: var(--dashboard-border-radius);
    font-size: var(--dashboard-font-xs);
    cursor: pointer;
    margin-top: 0.5rem;
    transition: var(--dashboard-transition);
}

.response-expand-btn:hover {
    background: var(--dashboard-sage-600);
}

.response-expandable .response-full {
    display: none;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--dashboard-sage-200);
}

.response-expandable .collapse-text {
    display: none;
}

.response-expandable.expanded .response-preview {
    display: none;
}

.response-expandable.expanded .response-full {
    display: block;
}

.response-expandable.expanded .expand-text {
    display: none;
}

.response-expandable.expanded .collapse-text {
    display: inline;
}

/* Animation pour les modules */
.module-item {
    animation: moduleSlideIn 0.3s ease-out;
}

@keyframes moduleSlideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================================================
   RESPONSIVE BREAKPOINTS AMÉLIORÉS
   ============================================================================ */

@media (max-width: 1024px) {
    .tc-dashboard-sidebar {
        width: 260px;
    }
    
    .metric-title {
        font-size: var(--dashboard-font-xs);
    }
    
    .metric-value {
        font-size: var(--dashboard-font-xl);
    }
}

@media (max-width: 768px) {
    .module-timeline,
    .module-actions,
    .structured-response {
        padding: 0.75rem;
        margin: 0.25rem 0;
    }
    
    .timeline-item-preview,
    .actions-list li {
        padding: 0.25rem 0.5rem;
    }
    
    .response-field {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .response-field strong {
        min-width: unset;
    }
}

/* ============================================================================
   DIAGNOSTIC RESULTS - DASHBOARD VIEW
   ============================================================================ */

.diagnostic-results-dashboard {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Score Card */
.diagnostic-score-card {
    background: linear-gradient(135deg, var(--dashboard-sage-500) 0%, var(--dashboard-sage-600) 100%);
    border-radius: var(--dashboard-border-radius);
    padding: 2rem;
    box-shadow: var(--dashboard-shadow-lg);
}

.diagnostic-score-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.diagnostic-score-badge {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.diagnostic-score-label {
    font-size: var(--dashboard-font-sm);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.diagnostic-score-value {
    font-size: var(--dashboard-font-3xl);
    font-weight: 700;
    color: white;
    line-height: 1;
}

.diagnostic-coherence {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.diagnostic-coherence-label {
    font-size: var(--dashboard-font-sm);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.diagnostic-coherence-value {
    font-size: var(--dashboard-font-2xl);
    font-weight: 700;
    color: white;
}

/* Profile Cards */
.diagnostic-profile-card {
    background: white;
    border-radius: var(--dashboard-border-radius);
    box-shadow: var(--dashboard-shadow-md);
    overflow: hidden;
    transition: var(--dashboard-transition);
}

.diagnostic-profile-card:hover {
    box-shadow: var(--dashboard-shadow-lg);
}

.diagnostic-profile-primary {
    border: 2px solid var(--dashboard-sage-500);
}

.diagnostic-profile-secondary {
    border: 2px solid var(--dashboard-sage-300);
    opacity: 0.9;
}

.diagnostic-profile-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--dashboard-sage-50);
    border-bottom: 1px solid var(--dashboard-sage-200);
}

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

.diagnostic-profile-header h3,
.diagnostic-profile-header h4 {
    margin: 0;
    font-size: var(--dashboard-font-xl);
    color: var(--dashboard-sage-700);
    font-weight: 600;
}

.diagnostic-profile-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.diagnostic-profile-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.diagnostic-profile-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.diagnostic-profile-besoin .diagnostic-profile-icon {
    background: var(--dashboard-amber-100);
    color: var(--dashboard-amber-600);
}

.diagnostic-profile-forces .diagnostic-profile-icon {
    background: var(--dashboard-blue-50);
    color: var(--dashboard-blue-500);
}

.diagnostic-profile-freins .diagnostic-profile-icon {
    background: #fef2f2;
    color: var(--dashboard-red-500);
}

.diagnostic-profile-secondary .diagnostic-profile-icon {
    background: var(--dashboard-sage-100);
    color: var(--dashboard-sage-600);
}

.diagnostic-profile-item > div {
    flex: 1;
}

.diagnostic-profile-item strong {
    display: block;
    font-size: var(--dashboard-font-sm);
    font-weight: 600;
    color: var(--dashboard-stone-700);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.diagnostic-profile-item p {
    margin: 0;
    font-size: var(--dashboard-font-base);
    color: var(--dashboard-stone-600);
    line-height: 1.6;
}

/* Actions Section */
.diagnostic-actions-section {
    background: white;
    border-radius: var(--dashboard-border-radius);
    padding: 2rem;
    box-shadow: var(--dashboard-shadow-md);
}

.diagnostic-actions-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: var(--dashboard-font-xl);
    font-weight: 600;
    color: var(--dashboard-stone-800);
    margin: 0 0 1.5rem 0;
}

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

.diagnostic-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.diagnostic-action-item {
    background: var(--dashboard-sage-50);
    border: 2px solid var(--dashboard-sage-200);
    border-radius: var(--dashboard-border-radius);
    padding: 1.5rem;
    transition: var(--dashboard-transition);
}

.diagnostic-action-item:hover {
    border-color: var(--dashboard-sage-500);
    background: white;
    box-shadow: var(--dashboard-shadow-md);
    transform: translateY(-2px);
}

.diagnostic-action-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

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

.diagnostic-action-header h4 {
    margin: 0;
    font-size: var(--dashboard-font-base);
    font-weight: 600;
    color: var(--dashboard-stone-800);
}

.diagnostic-action-content {
    margin: 0;
    font-size: var(--dashboard-font-sm);
    color: var(--dashboard-stone-600);
    line-height: 1.6;
}

/* ========================================
   MATURATION - DISPOSITIF OVERVIEW
   ======================================== */

.tc-maturation-section {
    margin-bottom: 2rem;
}

.tc-maturation-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.tc-maturation-stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--dashboard-sage-50), white);
    border-radius: var(--dashboard-border-radius);
    border: 1px solid var(--dashboard-sage-200);
    box-shadow: var(--dashboard-shadow-sm);
    transition: all 0.2s ease;
}

.tc-maturation-stat-card:hover {
    box-shadow: var(--dashboard-shadow-md);
    border-color: var(--dashboard-sage-300);
    transform: translateY(-2px);
}

.tc-maturation-stat-card .tc-stat-icon {
    font-size: 2.5rem;
    color: var(--dashboard-sage-500);
    flex-shrink: 0;
}

.tc-maturation-stat-card .tc-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dashboard-sage-700);
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

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

.tc-checkins-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tc-loading,
.tc-empty-message,
.tc-error-message {
    text-align: center;
    padding: 2rem;
    border-radius: var(--dashboard-border-radius);
}

.tc-loading {
    color: var(--dashboard-stone-500);
    font-style: italic;
}

.tc-empty-message {
    color: var(--dashboard-stone-500);
    background: var(--dashboard-sage-50);
    border: 1px dashed var(--dashboard-sage-300);
}

.tc-error-message {
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.tc-checkin-card {
    background: white;
    border-radius: var(--dashboard-border-radius);
    border: 1px solid var(--dashboard-sage-200);
    overflow: hidden;
    box-shadow: var(--dashboard-shadow-sm);
    transition: all 0.2s ease;
}

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

.tc-checkin-header {
    background: linear-gradient(135deg, var(--dashboard-sage-50), white);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--dashboard-sage-200);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tc-checkin-header .material-symbols-outlined {
    font-size: 1.5rem;
    color: var(--dashboard-sage-500);
}

.tc-checkin-day {
    font-weight: 600;
    color: var(--dashboard-sage-700);
    font-size: 1rem;
}

.tc-checkin-date {
    margin-left: auto;
    font-size: 0.875rem;
    color: var(--dashboard-stone-500);
}

.tc-checkin-content {
    padding: 1.5rem;
}

.tc-checkin-status {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.tc-status-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.tc-status-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.tc-status-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.tc-checkin-feedback {
    margin: 0 0 1rem 0;
    padding: 1rem;
    background: var(--dashboard-sage-50);
    border-left: 3px solid var(--dashboard-sage-400);
    border-radius: 4px;
    color: var(--dashboard-stone-700);
    line-height: 1.6;
}

.tc-checkin-blockers {
    padding: 1rem;
    background: #fef2f2;
    border-left: 3px solid #fca5a5;
    border-radius: 4px;
    font-size: 0.875rem;
    color: var(--dashboard-stone-700);
}

.tc-checkin-blockers strong {
    color: #991b1b;
    display: block;
    margin-bottom: 0.5rem;
}

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

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

    .diagnostic-actions-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================================
   CARTES D'ACTION V4 - DESIGN MODERNE MINIMALISTE (2025)
   Refonte complète pour améliorer la lisibilité et la hiérarchie visuelle
   ============================================================================ */

.card-v1 {
    background: white;
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--stone-200);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

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

/* Badge "Recommandé" */
.card-v1-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--copper-500) 0%, var(--copper-600) 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.3px;
}

.card-v1-badge .material-symbols-outlined {
    font-size: 16px;
}

/* Section principale */
.card-v1-main {
    margin-bottom: 20px;
}

/* Wrapper de l'icône avec progression */
.card-v1-icon-wrapper {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--brand-olive-100) 0%, var(--brand-olive-200) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
}

.card-v1-icon {
    font-size: 28px;
    color: var(--sage-600);
}

/* Badge de progression sur l'icône */
.card-v1-progress-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--sage-600);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 10px;
    border: 2px solid white;
}

/* Titre de la carte - BEAUCOUP PLUS VISIBLE */
.card-v1-title {
    font-size: 1.25rem; /* 20px au lieu de 16px */
    font-weight: 700;
    color: var(--stone-900);
    margin-bottom: 12px;
    line-height: 1.4;
    letter-spacing: -0.02em;
}

/* Description */
.card-v1-description {
    font-size: 0.9375rem; /* 15px */
    color: var(--stone-600);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Métadonnées (durée, type) */
.card-v1-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--stone-200);
}

.card-v1-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: var(--stone-600);
}

.card-v1-meta-item .material-symbols-outlined {
    font-size: 18px;
    color: var(--stone-500);
}

/* Barre de progression */
.card-v1-progress {
    margin-bottom: 20px;
}

.card-v1-progress-bar {
    height: 6px;
    background: var(--stone-100);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.card-v1-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--sage-500) 0%, var(--sage-600) 100%);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-v1-progress-text {
    font-size: 0.8125rem;
    color: var(--stone-600);
    font-weight: 500;
}

/* Bouton d'action - PLEINE LARGEUR */
.card-v1-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--stone-100);
    border-radius: 12px;
    font-weight: 600;
    color: var(--stone-900);
    transition: all 0.2s;
    font-size: 1rem;
}

.card-v1:hover .card-v1-action {
    background: var(--sage-700);
    color: white;
}

.card-v1-action .material-symbols-outlined {
    transition: transform 0.2s;
    font-size: 20px;
}

.card-v1:hover .card-v1-action .material-symbols-outlined {
    transform: translateX(4px);
}

/* Responsive */
@media (max-width: 768px) {
    .card-v1 {
        padding: 20px;
    }

    .card-v1-title {
        font-size: 1.125rem;
    }

    .card-v1-icon-wrapper {
        width: 48px;
        height: 48px;
    }

    .card-v1-icon {
        font-size: 24px;
    }

    .card-v1-meta {
        flex-direction: column;
        gap: 12px;
    }
}
