/* scoring/static/scoring/css/chat.css - VERSION PROFESSIONNELLE */

/* CARTES DE RÉSULTAT - DESIGN PRO */
.result-card {
    background: white;
    border-radius: 12px;

}

.result-card.warning {
    border-left: 4px solid #f59e0b;
    background: linear-gradient(135deg, #fffbeb, #fff7ed);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.card-header i {
    color: #3B82F6;
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.card-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #1e293b;
    font-weight: 600;
}

.card-description {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 16px;
}

/* SCORE - DESIGN AMÉLIORÉ */
.score-main {
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 12px;
}

.score-value {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1;
}

.score-value.excellent { color: #059669; }
.score-value.good { color: #d97706; }
.score-value.medium { color: #dc2626; }
.score-value.low { color: #991b1b; }

.score-category {
    font-size: 1rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 12px;
}

.score-category.excellent { 
    background: #d1fae5; 
    color: #065f46;
}
.score-category.good { 
    background: #fef3c7; 
    color: #92400e;
}
.score-category.medium { 
    background: #fecaca; 
    color: #991b1b;
}
.score-category.low { 
    background: #fca5a5; 
    color: #7f1d1d;
}

.score-date {
    font-size: 0.85rem;
    color: #94a3b8;
    font-style: italic;
}

.score-reference {
    margin-top: 20px;
}

.score-reference h4 {
    font-size: 0.95rem;
    color: #475569;
    margin-bottom: 12px;
    text-align: center;
}

.ranges-grid {
    display: grid;
    gap: 8px;
}

.range-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.range-item.excellent { 
    background: #ecfdf5; 
    border: 1px solid #a7f3d0;
}
.range-item.good { 
    background: #fffbeb; 
    border: 1px solid #fcd34d;
}
.range-item.medium { 
    background: #fef2f2; 
    border: 1px solid #fca5a5;
}
.range-item.low { 
    background: #fef2f2; 
    border: 1px solid #f87171;
}

.range-item .range {
    font-weight: 600;
    color: #1e293b;
}

.range-item .label {
    color: #475569;
}

/* METRICS GRID - DESIGN COHÉRENT */
.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 16px 0;
}

.metric-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    transition: transform 0.2s ease;
}

.metric-card.highlight {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-color: #3B82F6;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.metric-label {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 8px;
    font-weight: 500;
}

.metric-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}

.metric-detail {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 4px;
}

/* AFFICHAGE SIMPLE */
.single-metric {
    text-align: center;
    padding: 24px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: 12px;
    margin: 16px 0;
}

.main-value {
    font-size: 2rem;
    font-weight: 700;
    color: #0369a1;
    margin-bottom: 8px;
}

.value-detail {
    font-size: 0.9rem;
    color: #64748b;
}

/* TAUX D'ENDETTEMENT */
.rate-display {
    text-align: center;
    padding: 20px;
    border-radius: 12px;
    margin: 16px 0;
}

.rate-display.good {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 1px solid #bbf7d0;
}

.rate-display.critical {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border: 1px solid #fecaca;
}

.rate-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.rate-display.good .rate-value { color: #16a34a; }
.rate-display.critical .rate-value { color: #dc2626; }

.rate-context {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.9rem;
}

.context-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}

.context-item span {
    color: #64748b;
}

.context-item strong {
    color: #1e293b;
}

/* ALERTES DE STATUT */
.status-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 16px 0;
    font-size: 0.9rem;
}

.status-alert.good {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.status-alert.critical {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.status-alert i {
    font-size: 1.1rem;
}

/* OPTIONS DE SIMULATION */
.options-grid {
    display: grid;
    gap: 12px;
    margin: 16px 0;
}

.option-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.option-card:hover {
    border-color: #3B82F6;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

.option-icon {
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    border-radius: 10px;
    flex-shrink: 0;
}

.option-content {
    flex: 1;
}

.option-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.option-description {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.4;
}

/* SECTIONS DE TAUX */
.rates-section {
    margin: 20px 0;
    padding: 16px;
    background: #f8fafc;
    border-radius: 10px;
}

.rates-section h4 {
    font-size: 0.95rem;
    color: #475569;
    margin-bottom: 12px;
    text-align: center;
}

/* DÉTAILS EMPRUNT */
.loan-details {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.detail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.detail-item span {
    font-size: 0.85rem;
    color: #64748b;
}

.detail-item strong {
    font-size: 0.9rem;
    color: #1e293b;
    font-weight: 600;
}

/* AIDE - DESIGN AMÉLIORÉ */
.help-section {
    margin: 20px 0;
}

.help-section h4 {
    font-size: 1rem;
    color: #374151;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
}

.help-items {
    display: grid;
    gap: 12px;
}

.help-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
}

.help-item strong {
    display: block;
    color: #1e293b;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.help-item p {
    margin: 0;
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.4;
}

.help-tip {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 16px;
    font-size: 0.9rem;
}

.help-tip strong {
    color: #0369a1;
}

/* SUGGESTION D'ACTION */
.action-suggestion {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    padding: 12px;
    margin-top: 12px;
    font-size: 0.85rem;
}

.action-suggestion strong {
    color: #92400e;
}

/* LISTES */
.result-card ul {
    margin: 12px 0;
    padding-left: 20px;
}

.result-card li {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 6px;
    line-height: 1.4;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .score-value {
        font-size: 2.5rem;
    }
    
    .loan-details {
        flex-direction: column;
        gap: 12px;
    }
    
    .rate-context {
        font-size: 0.85rem;
    }
    
    .card-header {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .card-header h3 {
        font-size: 1rem;
    }
}

/* ANIMATIONS */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: slideIn 0.3s ease-out;
}

/* Ajouter ces styles à votre fichier CSS existant */

/* Résumé de simulation */
.simulation-summary {
    background: #f8fafc;
    border-radius: 8px;
    padding: 12px;
    margin: 12px 0;
    border: 1px solid #e2e8f0;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

.summary-item:not(:last-child) {
    border-bottom: 1px solid #e2e8f0;
}

.summary-item span {
    color: #64748b;
    font-size: 0.9rem;
}

.summary-item strong {
    color: #1e293b;
    font-size: 0.9rem;
}

/* Note de simulation */
.simulation-note {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 6px;
    padding: 10px 12px;
    margin-top: 12px;
}

.simulation-note p {
    margin: 0;
    font-size: 0.8rem;
    color: #0369a1;
    line-height: 1.4;
}

/* Amélioration des alertes de statut */
.status-alert div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.status-alert strong {
    font-size: 0.85rem;
    margin-bottom: 2px;
}

.status-alert span {
    font-size: 0.8rem;
    line-height: 1.3;
}

/* Ajouter ces styles à votre CSS existant */

/* Notice d'authentification */
.auth-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: #eff6ff;
    border: 1px solid #3B82F6;
    border-radius: 8px;
    margin-bottom: 16px;
}

.auth-notice i {
    color: #3B82F6;
    font-size: 1.2rem;
    margin-top: 2px;
}

.auth-notice strong {
    display: block;
    color: #1e40af;
    margin-bottom: 4px;
}

.auth-notice p {
    margin: 0;
    color: #374151;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Fonctionnalités verrouillées */
.feature-locked {
    position: relative;
    opacity: 0.8;
}

.lock-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 1rem;
    color: #6b7280;
}

/* Statut des fonctionnalités */
.feature-status {
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 4px;
    display: inline-block;
}

.feature-status.available {
    background: #d1fae5;
    color: #065f46;
}

.feature-status.locked {
    background: #fef3c7;
    color: #92400e;
}

/* Indicateur visuel pour les sections verrouillées */
.help-section h4 {
    position: relative;
}

.help-section h4::after {
    content: attr(data-status);
    font-size: 0.7rem;
    background: #f3f4f6;
    color: #6b7280;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
    font-weight: normal;
}

/* Styles pour la FAQ financière */

/* Catégories FAQ */
.faq-categories {
    display: grid;
    gap: 12px;
    margin: 16px 0;
}

.faq-category {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.faq-category:hover {
    border-color: #3B82F6;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

.category-icon {
    font-size: 1.8rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    border-radius: 12px;
    flex-shrink: 0;
}

.category-content {
    flex: 1;
}

.category-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.category-count {
    font-size: 0.85rem;
    color: #64748b;
}

/* Questions FAQ */
.faq-questions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 16px 0;
}

.faq-question {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.faq-question:hover {
    border-color: #3B82F6;
    background: #f8fafc;
}

.question-number {
    background: #3B82F6;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    flex-shrink: 0;
}

.question-text {
    flex: 1;
    color: #1e293b;
    font-size: 0.9rem;
    font-weight: 500;
}

.faq-question i {
    color: #64748b;
    font-size: 0.8rem;
}

/* Réponses FAQ */
.faq-answer {
    margin: 16px 0;
}

.answer-content {
    line-height: 1.6;
}

.answer-content p {
    margin-bottom: 16px;
    color: #374151;
}

.example-section, .calculation-section, .impact-section {
    margin: 20px 0;
    padding: 16px;
    border-radius: 10px;
}

.example-section {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
}

.calculation-section {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.impact-section {
    background: #fef7ed;
    border: 1px solid #fed7aa;
}

.example-section h4, .calculation-section h4, .impact-section h4 {
    color: #1e293b;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

/* Grilles d'exemples */
.example-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 12px 0;
}

.example-item {
    background: white;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.example-item strong {
    display: block;
    margin-bottom: 8px;
    color: #1e293b;
}

.example-item ul {
    margin: 0;
    padding-left: 16px;
}

.example-item li {
    color: #475569;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

/* Notes et conseils */
.example-note, .example-tip, .example-warning {
    font-size: 0.85rem;
    padding: 8px 12px;
    border-radius: 6px;
    margin: 8px 0;
}

.example-note {
    background: #eff6ff;
    color: #1e40af;
    border-left: 3px solid #3B82F6;
}

.example-tip {
    background: #f0fdf4;
    color: #166534;
    border-left: 3px solid #22c55e;
}

.example-warning {
    background: #fef2f2;
    color: #991b1b;
    border-left: 3px solid #ef4444;
}

/* Échelles d'évaluation */
.incident-scale, .retard-scale {
    background: white;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin: 12px 0;
}

.incident-scale h5, .retard-scale h5 {
    margin: 0 0 8px 0;
    color: #374151;
    font-size: 0.9rem;
}

.scale-item {
    padding: 6px 8px;
    margin: 4px 0;
    border-radius: 4px;
    font-size: 0.8rem;
}

.scale-item.good {
    background: #d1fae5;
    color: #065f46;
}

.scale-item.medium {
    background: #fef3c7;
    color: #92400e;
}

.scale-item.critical {
    background: #fecaca;
    color: #991b1b;
}

/* Navigation FAQ */
.faq-navigation {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.nav-button {
    flex: 1;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
    cursor: pointer;
    font-size: 0.85rem;
    color: #64748b;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.nav-button:hover {
    background: #e2e8f0;
}

.nav-button.primary {
    background: #3B82F6;
    color: white;
    border-color: #3B82F6;
}

.nav-button.primary:hover {
    background: #2563eb;
}

/* Exemple complet */
.example-comprehensive {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    margin: 12px 0;
}

.comprehensive-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 12px;
}

.comp-item h6 {
    margin: 0 0 8px 0;
    color: #374151;
    font-size: 0.9rem;
}

.performance-rating {
    text-align: center;
    padding: 12px;
    background: #f0fdf4;
    border-radius: 8px;
    border: 1px solid #bbf7d0;
}

.rating.excellent {
    color: #059669;
    font-weight: 600;
    margin-bottom: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .example-grid, .comprehensive-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .faq-navigation {
        flex-direction: column;
    }
    
    .category-icon {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}

/* Styles pour la présentation d'accueil améliorée */

.welcome-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 20px 0;
}

@media (min-width: 768px) {
    .welcome-features {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.feature-category {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    position: relative;
}

.feature-category h4 {
    margin: 0 0 8px 0;
    color: #1e293b;
    font-size: 0.95rem;
    font-weight: 600;
}

.feature-category > p {
    margin: 0 0 12px 0;
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.4;
}

.feature-category ul {
    margin: 0;
    padding-left: 16px;
}

.feature-category li {
    color: #475569;
    font-size: 0.8rem;
    margin-bottom: 4px;
    line-height: 1.3;
}

.feature-category li strong {
    color: #374151;
}

.access-note {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 6px 8px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    font-size: 0.75rem;
    color: #dc2626;
}

.access-note.available {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #16a34a;
}

.access-note i {
    font-size: 0.7rem;
}

.getting-started {
    margin: 20px 0;
    padding: 16px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-radius: 12px;
    border: 1px solid #3B82F6;
}

.getting-started h4 {
    margin: 0 0 12px 0;
    color: #1e40af;
    font-size: 1rem;
    text-align: center;
}

.start-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.start-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.option-icon {
    font-size: 1.2rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    border-radius: 8px;
    flex-shrink: 0;
}

.option-content {
    flex: 1;
}

.option-content strong {
    display: block;
    color: #1e293b;
    font-size: 0.85rem;
    margin-bottom: 2px;
}

.option-content p {
    margin: 0;
    color: #64748b;
    font-size: 0.75rem;
    line-height: 1.3;
}

.option-content code {
    background: #f1f5f9;
    padding: 1px 4px;
    border-radius: 4px;
    font-size: 0.7rem;
    color: #3B82F6;
    font-weight: 600;
}

.welcome-footer {
    text-align: center;
    color: #374151;
    font-weight: 500;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

/* Animation d'entrée */
.message.bot .message-content {
    animation: slideInUp 0.6s ease-out;
}

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

/* Styles pour le guide d'aide amélioré */

.help-intro {
    text-align: center;
    margin-bottom: 20px;
    padding: 0 10px;
}

.help-intro p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Bannière d'accès */
.access-banner {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border-radius: 12px;
    padding: 16px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.banner-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.banner-text h4 {
    margin: 0 0 4px 0;
    font-size: 1rem;
    font-weight: 600;
}

.banner-text p {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.9;
    line-height: 1.4;
}

/* Vue d'ensemble des fonctionnalités */
.features-overview {
    margin: 24px 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 1024px) {
    .feature-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.feature-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
     /* ✅ clé du problème */
    width: 100%;
    box-sizing: border-box; /* évite que le padding déborde */
}

.feature-card.feature-unlocked {
    border-color: #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}

.feature-card.feature-locked {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
}

.feature-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.feature-icon {
    font-size: 2rem;
}

.feature-status {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 600;
}

.feature-status.available {
    background: #d1fae5;
    color: #065f46;
}

.feature-card h4 {
    margin: 0 0 8px 0;
    color: #1e293b;
    font-size: 1.1rem;
    font-weight: 600;
}

.feature-card > p {
    margin: 0 0 16px 0;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.4;
}

.feature-items {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 6px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    padding: 4px;
    background: #f8fafc;
    border-radius: 8px;
}

.feature-item i {
    color: #3B82F6;
    font-size: 0.9rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.feature-item span {
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.3;
}

.feature-item strong {
    color: #374151;
}

.access-prompt {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    color: #92400e;
    font-size: 0.8rem;
    font-weight: 500;
}

.feature-action {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: #d1fae5;
    border: 1px solid #10b981;
    border-radius: 8px;
    color: #065f46;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Guide de démarrage rapide */
.quick-start-guide {
    margin: 24px 0;
    padding: 20px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-radius: 12px;
    border: 1px solid #3B82F6;
}

.quick-start-guide h4 {
    margin: 0 0 16px 0;
    color: #1e40af;
    font-size: 1.1rem;
    text-align: center;
}

.guide-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.guide-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.step-number {
    background: #3B82F6;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content strong {
    display: block;
    color: #1e293b;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.step-content p {
    margin: 0;
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Pied de page du guide */
.help-footer {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.footer-content {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: #f0f9ff;
    border-radius: 8px;
    border: 1px solid #bae6fd;
}

.footer-content i {
    color: #3B82F6;
    font-size: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.footer-content span {
    font-size: 0.85rem;
    color: #0369a1;
    line-height: 1.4;
}

/* Animations */
.feature-card {
    animation: fadeInUp 0.6s ease-out;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }

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

/* Styles améliorés pour le questionnaire investisseur */

.investment-card {
    max-width: 100%;
    margin: 8px 0;
}

/* Introduction compacte */
.investment-intro {
    text-align: center;
    padding: 0 8px;
}

.questionnaire-info {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 16px 0;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #f8fafc;
    border-radius: 6px;
    font-size: 0.85rem;
}

.info-item i {
    color: #3B82F6;
    font-size: 0.9rem;
}

/* Progression */
.question-progress {
    margin-bottom: 16px;
}

.progress-text {
    display: block;
    text-align: center;
    color: #64748b;
    font-size: 0.8rem;
    margin-bottom: 6px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3B82F6, #8b5cf6);
    transition: width 0.3s ease;
}

/* Questions compactes */
.investment-question h4 {
    margin: 0 0 6px 0;
    color: #1e293b;
    font-size: 1rem;
    line-height: 1.3;
}

.question-description {
    color: #64748b;
    font-size: 0.85rem;
    margin-bottom: 16px;
    line-height: 1.3;
}

.investment-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.investment-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: white;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.investment-option:hover {
    border-color: #3B82F6;
    background: #f8fafc;
    transform: translateY(-1px);
}

.option-selector {
    flex-shrink: 0;
    margin-top: 1px;
}

.option-circle {
    width: 16px;
    height: 16px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.investment-option:hover .option-circle {
    border-color: #3B82F6;
}

.option-content {
    flex: 1;
}

.option-text {
    color: #374151;
    font-size: 0.85rem;
    line-height: 1.3;
}

/* Résultats compacts */
.investment-result {
    padding: 16px;
    border-radius: 10px;
    margin: 12px 0;
}

.investment-result.prudent {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 1.5px solid #10b981;
}

.investment-result.equilibre {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1.5px solid #3B82F6;
}

.investment-result.dynamique {
    background: linear-gradient(135deg, #fffbeb, #fed7aa);
    border: 1.5px solid #f59e0b;
}

.investment-result.offensif {
    background: linear-gradient(135deg, #fef2f2, #fecaca);
    border: 1.5px solid #ef4444;
}

.profile-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.profile-icon {
    font-size: 2rem;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2px;
}

.profile-score {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.profile-description p {
    margin: 0 0 8px 0;
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.3;
}

.profile-characteristics {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
    padding: 6px 0;
    border-top: 1px solid rgba(0,0,0,0.1);
}

/* Actions */
.profile-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.action-button {
    flex: 1;
    padding: 10px 12px;
    border: 1.5px solid;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.action-button.primary {
    background: #3B82F6;
    color: white;
    border-color: #3B82F6;
}

.action-button.primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.action-button.secondary {
    background: white;
    color: #64748b;
    border-color: #e2e8f0;
}

.action-button.secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

/* Détail des réponses compact */
.answers-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.answer-detail {
    display: flex;
    gap: 10px;
    padding: 12px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

.question-number {
    background: #3B82F6;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

.question-content {
    flex: 1;
}

.question-text {
    font-weight: 500;
    color: #374151;
    margin-bottom: 4px;
    font-size: 0.85rem;
    line-height: 1.3;
}

.answer-text {
    color: #475569;
    font-size: 0.8rem;
    line-height: 1.3;
}

/* Bouton de démarrage */
.start-button {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.start-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
}

/* Responsive */
@media (max-width: 480px) {
    .questionnaire-info {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .info-item {
        width: 100%;
        justify-content: center;
    }
    
    .profile-actions {
        flex-direction: column;
    }
}


/* PARCOURS ENTREPRENEUR - STYLES PROFESSIONNELS */

/* Carte principale */
.entrepreneur-card {
    border-left: 4px solid #8B5CF6;
    background: linear-gradient(135deg, #fafafa, #ffffff);
}

.entrepreneur-card .card-header {
    background: linear-gradient(135deg, #8B5CF6, #7C3AED);
    color: white;
    border-radius: 12px 12px 0 0;
    padding: 20px;
    margin: -20px -20px 20px -20px;
}

.entrepreneur-card .card-header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
}

.entrepreneur-card .card-header i {
    font-size: 1.6rem;
    margin-right: 10px;
}

/* Introduction */
.journey-intro {
    padding: 0 8px;
}

.intro-text {
    text-align: center;
    font-size: 1.1rem;
    color: #374151;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* Highlights */
.journey-highlights {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.highlight-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.1);
    border-color: #8B5CF6;
}

.highlight-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.highlight-content {
    flex: 1;
}

.highlight-content strong {
    display: block;
    font-size: 0.95rem;
    color: #1e293b;
    margin-bottom: 4px;
}

.highlight-content span {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.3;
}

/* Modules Grid */
.modules-overview {
    margin: 25px 0;
}

.modules-overview h4 {
    font-size: 1.1rem;
    color: #374151;
    margin-bottom: 16px;
    text-align: center;
}

.modules-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.module-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px;
    background: white;
    border: 2px solid #f1f5f9;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.module-card:hover {
    border-color: #8B5CF6;
    background: #faf5ff;
    transform: translateX(4px);
}

.module-number {
    background: linear-gradient(135deg, #8B5CF6, #7C3AED);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.module-content {
    flex: 1;
}

.module-title {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.module-description {
    font-size: 0.8rem;
    color: #64748b;
}

.module-arrow {
    color: #8B5CF6;
    font-weight: 700;
    font-size: 1.1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.module-card:hover .module-arrow {
    opacity: 1;
}

/* CTA */
.journey-cta {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.action-button.large {
    padding: 14px 28px;
    font-size: 1.05rem;
    font-weight: 600;
}

.cta-note {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 10px;
}

/* ÉDUCATION - Styles des modules */
.education-card {
    border-left: 4px solid #10B981;
}

.education-progress {
    margin-bottom: 20px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.module-title {
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
}

.step-counter {
    font-size: 0.85rem;
    color: #64748b;
    background: #f1f5f9;
    padding: 4px 8px;
    border-radius: 12px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10B981, #34D399);
    transition: width 0.5s ease;
}

/* Contenu éducatif */
.education-content {
    padding: 0 4px;
}

.scenario h4 {
    font-size: 1.1rem;
    color: #1e293b;
    margin-bottom: 12px;
    line-height: 1.4;
}

.scenario-context {
    background: #f0fdf4;
    padding: 14px;
    border-radius: 8px;
    border-left: 3px solid #10B981;
    font-size: 0.9rem;
    color: #065f46;
    margin: 12px 0;
    line-height: 1.4;
}

/* Options éducatives */
.education-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

.education-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.education-option:hover {
    border-color: #8B5CF6;
    background: #faf5ff;
    transform: translateY(-1px);
}

.option-indicator {
    background: #8B5CF6;
    color: white;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

.option-text {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #374151;
}

/* Feedback */
.feedback-card {
    border-left: 4px solid;
    padding: 20px;
}

.feedback-card.correct {
    border-left-color: #10B981;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
}

.feedback-card.incorrect {
    border-left-color: #EF4444;
    background: linear-gradient(135deg, #fef2f2, #fecaca);
}

.feedback-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.feedback-header i {
    font-size: 1.3rem;
}

.feedback-card.correct .feedback-header i {
    color: #10B981;
}

.feedback-card.incorrect .feedback-header i {
    color: #EF4444;
}

.feedback-header strong {
    font-size: 1rem;
}

.feedback-content p {
    margin: 0 0 12px 0;
    line-height: 1.5;
    color: #374151;
}

.explanation {
    background: rgba(255, 255, 255, 0.7);
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #475569;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.feedback-actions {
    margin-top: 16px;
}

/* Completion */
.completion-card {
    text-align: center;
    border-left: 4px solid #F59E0B;
}

.completion-content {
    padding: 10px;
}

.score-display {
    margin: 20px 0;
}

.score-value {
    font-size: 2.8rem;
    font-weight: 800;
    color: #8B5CF6;
    line-height: 1;
}

.score-label {
    color: #64748b;
    font-size: 0.9rem;
    margin-top: 4px;
}

.module-summary {
    margin: 25px 0;
}

.module-summary h4 {
    font-size: 1.1rem;
    color: #374151;
    margin-bottom: 16px;
}

.learned-skills {
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    color: #059669;
    border-bottom: 1px solid #f1f5f9;
}

.skill-item:last-child {
    border-bottom: none;
}

.skill-item i {
    font-size: 0.9rem;
    color: #10B981;
}

.skill-item span {
    font-size: 0.9rem;
}

.completion-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 25px;
    flex-wrap: wrap;
}

/* Final Completion */
.final-completion-card {
    border-left: 4px solid #F59E0B;
    text-align: center;
}

.achievement-badge {
    margin: 20px 0;
}

.badge-icon {
    font-size: 4rem;
    margin-bottom: 10px;
}

.badge-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: #8B5CF6;
}

.mastery-skills {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.mastery-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.mastery-item i {
    color: #8B5CF6;
    font-size: 1.1rem;
    width: 20px;
}

.mastery-item span {
    font-size: 0.9rem;
    color: #374151;
}

.final-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 25px;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 768px) {
    .highlight-item {
        padding: 12px;
    }
    
    .module-card {
        padding: 12px;
    }
    
    .completion-actions,
    .final-actions {
        flex-direction: column;
    }
    
    .action-button {
        width: 100%;
    }
}