/* ============================================
   PROSPECTIVE.CSS - Styles page Prospective
   ============================================ */

/* Introduction prospective */
.prospective-intro {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem;
    border-radius: 15px;
}

.prospective-intro h2,
.prospective-intro h3 {
    color: white;
}

.prospective-goals {
    margin-top: 2rem;
}

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

.goal-card {
    background: rgba(255,255,255,0.15);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
}

.goal-card i {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

.time-horizon {
    margin-top: 2rem;
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 10px;
}

.time-horizon ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

/* Construction steps */
.construction-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.step {
    display: flex;
    gap: 1rem;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h5 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Tableau scénarios */
.scenarios-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
}

.scenarios-table thead {
    background: var(--primary-color);
    color: white;
}

.scenarios-table th,
.scenarios-table td {
    padding: 1rem;
    border: 1px solid #e0e0e0;
}

.scenario-row.tendanciel {
    background: #ffe6cc;
}

.scenario-row.volontariste {
    background: #d4edda;
}

.scenario-row.rupture {
    background: #f8d7da;
}

.scenario-row.patrimonial {
    background: #d1ecf1;
}

.scenario-row.sanctuarisation {
    background: #e2e3e5;
}

/* Variables grid */
.variables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.variable-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.variable-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.variable-header i {
    font-size: 1.8rem;
}

.variable-content {
    padding: 1.5rem;
}

.hypothesis {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border-left: 4px solid;
}

.hypothesis.pessimiste {
    background: #ffebee;
    border-left-color: #e74c3c;
}

.hypothesis.mediane {
    background: #fff9c4;
    border-left-color: #f39c12;
}

.hypothesis.optimiste {
    background: #e8f5e9;
    border-left-color: #27ae60;
}

/* Sections scénarios */
.scenario-section {
    padding: 4rem 0;
}

.scenario-tendanciel {
    background: linear-gradient(to bottom, #fff 0%, #ffe6cc 100%);
}

.scenario-volontariste {
    background: linear-gradient(to bottom, #f8f9fa 0%, #d4edda 100%);
}

.scenario-rupture {
    background: linear-gradient(to bottom, #fff 0%, #f8d7da 100%);
}

.scenario-patrimonial {
    background: linear-gradient(to bottom, #f8f9fa 0%, #d1ecf1 100%);
}

.scenario-sanctuarisation {
    background: linear-gradient(to bottom, #fff 0%, #e2e3e5 100%);
}

.scenario-title {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.scenario-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.scenario-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-top: 0.5rem;
}

/* Narrative box */
.narrative-box {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    line-height: 1.8;
}

.narrative-box h4 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
}

.narrative-box h4:first-of-type {
    margin-top: 0;
}

/* Indicateurs */
.indicators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.indicator-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    border-top: 5px solid;
}

.indicator-card.positive {
    border-top-color: #27ae60;
}

.indicator-card.negative {
    border-top-color: #e74c3c;
}

.indicator-card.neutral {
    border-top-color: #f39c12;
}

.indicator-card.critical {
    border-top-color: #c0392b;
    background: #ffebee;
}

.indicator-card i {
    font-size: 2rem;
    display: block;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.indicator-card strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* Evaluation */
.evaluation-grid {
    margin-top: 1.5rem;
}

.eval-item {
    margin-bottom: 1.5rem;
}

.eval-item strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.probability-bar,
.desirability-bar {
    height: 30px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-radius: 15px;
    display: inline-block;
    margin: 0.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.probability-bar.warning {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.desirability-bar.positive {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
}

.desirability-bar.negative {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.desirability-bar.neutral {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.desirability-bar.critical {
    background: linear-gradient(135deg, #c0392b 0%, #8b0000 100%);
}

.scenario-verdict {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 2rem;
    border-left: 5px solid var(--primary-color);
    line-height: 1.7;
}

/* Comparaison */
.comparison-table-container {
    overflow-x: auto;
    margin-top: 2rem;
}

.comparison-table {
    width: 100%;
    min-width: 1200px;
    border-collapse: collapse;
}

.comparison-table thead {
    background: var(--primary-color);
    color: white;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.comparison-table .scenario-col {
    font-weight: 600;
}

.comparison-table td.positive {
    background: #d4edda;
    color: #155724;
    font-weight: 600;
}

.comparison-table td.negative {
    background: #f8d7da;
    color: #721c24;
    font-weight: 600;
}

.comparison-table td.neutral {
    background: #fff3cd;
    color: #856404;
}

.comparison-table td.critical {
    background: #f5c6cb;
    color: #721c24;
    font-weight: 700;
}

/* Charts comparison */
.charts-comparison {
    margin-top: 3rem;
}

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

/* Recommandations */
.recommendation-highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2.5rem;
    border-radius: 15px;
    margin-bottom: 3rem;
}

.recommendation-highlight h3 {
    color: white;
    margin-bottom: 1.5rem;
}

.key-lessons {
    padding-left: 1.5rem;
}

.key-lessons li {
    margin-bottom: 1rem;
    line-height: 1.7;
}

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

.recommendation-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    position: relative;
    padding-top: 4rem;
}

.rec-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.recommendation-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.recommendation-card p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .scenario-title {
        flex-direction: column;
        text-align: center;
    }
    
    .variables-grid,
    .indicators-grid,
    .recommendations-grid {
        grid-template-columns: 1fr;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-table {
        font-size: 0.8rem;
    }
}
