/* ============================================
   DIAGNOSTIC.CSS - Styles pour la page Diagnostic AFOM
   ============================================ */

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

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

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

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

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

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

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

.diagnostic-approach ol {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.diagnostic-approach li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

/* Matrice AFOM globale */
.afom-matrix-container {
    margin-top: 2rem;
}

.afom-matrix {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.afom-quadrant {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s;
}

.afom-quadrant:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.quadrant-header {
    padding: 1.5rem;
    color: white;
}

.quadrant-header i {
    font-size: 1.8rem;
    margin-right: 0.8rem;
}

.quadrant-header h3 {
    display: inline;
    color: white;
}

.quadrant-label {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.quadrant-content {
    background: white;
    padding: 2rem;
}

.quadrant-content ul {
    list-style: none;
    padding: 0;
}

.quadrant-content li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #e0e0e0;
    line-height: 1.6;
}

.quadrant-content li:last-child {
    border-bottom: none;
}

/* Couleurs spécifiques AFOM */
.afom-quadrant.forces .quadrant-header {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
}

.afom-quadrant.faiblesses .quadrant-header {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.afom-quadrant.opportunites .quadrant-header {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.afom-quadrant.menaces .quadrant-header {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

/* Graphique radar */
.chart-container {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-top: 3rem;
}

.chart-container h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

/* Grilles forces/faiblesses/opportunités/menaces */
.forces-grid,
.faiblesses-grid,
.opportunites-grid,
.menaces-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.force-card,
.faiblesse-card,
.opportunite-card,
.menace-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 5px solid;
}

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

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

.opportunite-card {
    border-top-color: #3498db;
}

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

.force-card:hover,
.faiblesse-card:hover,
.opportunite-card:hover,
.menace-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.force-icon,
.faiblesse-icon,
.opportunite-icon,
.menace-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
}

.force-card h4,
.faiblesse-card h4,
.opportunite-card h4,
.menace-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.force-card p,
.faiblesse-card p,
.opportunite-card p,
.menace-card p {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

/* Menaces avec niveaux de sévérité */
.menace-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.severity-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
}

.severity-badge.critical {
    background: #c0392b;
}

.severity-badge.high {
    background: #e74c3c;
}

.severity-badge.medium {
    background: #f39c12;
}

.menace-card.severity-critical {
    border-top-color: #c0392b;
    border-top-width: 7px;
}

.menace-card.severity-high {
    border-top-color: #e74c3c;
    border-top-width: 6px;
}

.menace-card.severity-medium {
    border-top-width: 5px;
}

/* Matrices croisées */
.crossed-intro {
    background: #e8f5e9;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
    border-left: 5px solid #27ae60;
}

.strategy-types {
    margin-top: 1.5rem;
    padding-left: 1.5rem;
}

.strategy-types li {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.strategy-block {
    margin-bottom: 3rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.strategy-header {
    padding: 2rem;
    color: white;
}

.strategy-header i {
    font-size: 2rem;
    margin-right: 1rem;
}

.strategy-header h3 {
    display: inline;
    color: white;
}

.strategy-header p {
    margin-top: 0.8rem;
    opacity: 0.95;
}

.strategy-block.offensive .strategy-header {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
}

.strategy-block.defensive .strategy-header {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.strategy-block.adaptive .strategy-header {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.strategy-block.rupture .strategy-header {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.strategy-matrix {
    background: white;
    padding: 2rem;
}

.crossed-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

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

.crossed-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.crossed-table td {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: top;
}

.crossed-table tbody tr:hover {
    background: #f8f9fa;
}

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

/* Matrice enjeux × acteurs */
.matrix-enjeux-acteurs {
    overflow-x: auto;
    margin-top: 2rem;
}

.matrix-table {
    min-width: 1200px;
    border-collapse: collapse;
}

.matrix-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.matrix-table th {
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.3);
}

.matrix-table th small {
    display: block;
    font-size: 0.8rem;
    font-weight: 400;
    margin-top: 0.3rem;
    opacity: 0.9;
}

.matrix-table td {
    padding: 1rem;
    text-align: center;
    border: 1px solid #e0e0e0;
    font-size: 0.9rem;
}

.matrix-table tbody tr:first-child td:first-child {
    text-align: left;
    font-weight: 600;
    background: #f8f9fa;
}

.matrix-table td small {
    display: block;
    font-size: 0.75rem;
    color: #666;
    margin-top: 0.3rem;
}

.impact-high {
    background: #ffebee;
    font-weight: 600;
}

.impact-medium {
    background: #fff9c4;
}

.impact-low {
    background: #e8f5e9;
}

.matrix-legend {
    margin-top: 2rem;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
}

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

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

.legend-symbol {
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

.matrix-note {
    margin-top: 1rem;
    font-style: italic;
    color: #666;
}

/* Synthèse stratégique */
.synthesis-diagnostic {
    margin-top: 2rem;
}

.synthesis-highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem;
    border-radius: 15px;
    margin-bottom: 3rem;
    text-align: center;
}

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

.key-findings {
    margin-bottom: 3rem;
}

.key-findings h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

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

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

.finding-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);
}

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

.strategic-choices {
    margin-bottom: 3rem;
}

.strategic-choices h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

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

.choice-card {
    padding: 2rem;
    border-radius: 12px;
    color: white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.choice-card.offensive {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
}

.choice-card.defensive {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.choice-card.adaptive {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.choice-card.rupture {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.choice-card h4 {
    color: white;
    margin-bottom: 1rem;
}

.choice-card p {
    line-height: 1.7;
    margin-bottom: 1rem;
}

.choice-risk {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.3);
    opacity: 0.9;
}

/* Next step box */
.next-step-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem;
    border-radius: 15px;
    text-align: center;
    margin-top: 3rem;
}

.next-step-box h3 {
    color: white;
    margin-bottom: 1.5rem;
}

.scenarios-preview {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    text-align: left;
    display: inline-block;
}

.scenarios-preview li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.3);
}

.scenarios-preview li:last-child {
    border-bottom: none;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2rem;
    background: white;
    color: var(--primary-color);
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    margin-top: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.btn-primary i {
    margin-right: 0.8rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .afom-matrix {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .forces-grid,
    .faiblesses-grid,
    .opportunites-grid,
    .menaces-grid {
        grid-template-columns: 1fr;
    }
    
    .findings-grid,
    .choices-grid {
        grid-template-columns: 1fr;
    }
    
    .crossed-table,
    .matrix-table {
        font-size: 0.8rem;
    }
    
    .crossed-table td,
    .matrix-table td {
        padding: 0.8rem 0.5rem;
    }
}
