/* ============================================
   ACTEURS.CSS - Styles pour la page Acteurs
   ============================================ */

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

.intro-box h2 {
    color: white;
    margin-bottom: 1.5rem;
}

.intro-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.intro-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

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

.intro-list i {
    margin-right: 1rem;
    color: #ffd700;
}

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

.actor-stat-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 2px solid rgba(255,255,255,0.3);
}

.actor-stat-card i {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
    color: #ffd700;
}

.actor-stat-card strong {
    display: block;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

.actor-stat-card span {
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
}

/* Typologie des acteurs */
.typologie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

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

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

.typologie-header {
    padding: 1.5rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.typologie-header i {
    font-size: 2rem;
}

.typologie-card.public .typologie-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.typologie-card.economic .typologie-header {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.typologie-card.civil .typologie-header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.typologie-card.hydraulic .typologie-header {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.typologie-card.expert .typologie-header {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.typologie-body {
    padding: 1.5rem;
}

.typologie-body ul {
    margin-top: 1rem;
    padding-left: 1.2rem;
}

.typologie-body li {
    margin-bottom: 0.5rem;
    color: #555;
}

/* Filtres acteurs */
.actors-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.filter-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
}

/* Recherche */
.search-box {
    margin-bottom: 2rem;
}

.search-box input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--secondary-color);
}

/* Tableau acteurs */
.actors-table-container {
    overflow-x: auto;
    margin-top: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-radius: 12px;
}

.actors-table {
    min-width: 1200px;
}

.actors-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    padding: 1rem;
}

.actors-table td {
    padding: 1rem;
    vertical-align: top;
}

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

/* Tags catégories */
.category-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
}

.category-tag.public {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.category-tag.economic {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.category-tag.civil {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.category-tag.hydraulic {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.category-tag.expert {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

/* Positions sur assèchement */
.position {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.position.for {
    background: #ffc107;
    color: #333;
}

.position.against {
    background: #e74c3c;
    color: white;
}

.position.nuanced {
    background: #f39c12;
    color: white;
}

.position.neutral {
    background: #95a5a6;
    color: white;
}

/* Niveau de pouvoir */
.power {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
}

.power.very-high {
    background: #c0392b;
}

.power.high {
    background: #e67e22;
}

.power.medium {
    background: #f39c12;
}

.power.low {
    background: #95a5a6;
}

/* Diagramme de positionnement */
.positioning-diagram-container {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

.positioning-svg {
    width: 100%;
    height: auto;
    margin-bottom: 2rem;
}

.actor-node {
    cursor: pointer;
    transition: transform 0.3s;
}

.actor-node:hover {
    transform: scale(1.1);
}

.positioning-legend {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

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

.legend-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.legend-color {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    flex-shrink: 0;
}

/* Analyse positionnement */
.positioning-analysis {
    margin-top: 3rem;
}

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

.strategy-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.strategy-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Jeux d'acteurs */
.games-intro {
    background: #e8f5e9;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border-left: 5px solid #27ae60;
}

.games-typology {
    margin-top: 2rem;
}

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

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

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

.game-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
}

.game-card h4 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1rem;
}

.game-card p {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.game-card p strong {
    color: var(--primary-color);
}

/* Analyse ressources */
.resources-analysis {
    margin-top: 3rem;
}

.resources-table {
    margin-top: 1.5rem;
}

/* Dynamiques temporelles */
.temporal-dynamics {
    margin-top: 3rem;
}

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

.dynamic-period {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.period-badge {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    margin-bottom: 1rem;
}

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

.dynamic-period p {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

/* Coalitions et conflits */
.coalitions-intro {
    background: #fff3e0;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border-left: 5px solid #f39c12;
}

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

.coalition-block {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.coalition-header {
    padding: 1.5rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.coalition-env .coalition-header {
    background: linear-gradient(135deg, #27ae60 0%, #16a085 100%);
}

.coalition-header i {
    font-size: 2rem;
}

.coalition-body {
    background: white;
    padding: 2rem;
}

.coalition-body ul {
    margin: 1rem 0;
    padding-left: 1.2rem;
}

.coalition-body li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Acteurs intermédiaires */
.intermediary-actors {
    margin-top: 3rem;
}

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

.intermediary-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border-top: 4px solid var(--secondary-color);
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.intermediary-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.intermediary-card p {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

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

.relations-svg {
    width: 100%;
    height: auto;
    margin-bottom: 2rem;
}

.graph-legend {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

.legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 1rem;
}

.legend-items .legend-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

/* Tableau conflits */
.conflicts-table-container {
    margin-top: 2rem;
}

.conflicts-table {
    margin-top: 1.5rem;
}

.conflict-status {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
}

.conflict-status.high {
    background: #e74c3c;
}

.conflict-status.medium {
    background: #f39c12;
}

.conflict-status.low {
    background: #27ae60;
}

/* Synthèse */
.synthesis-content {
    margin-top: 2rem;
}

.synthesis-block {
    margin-bottom: 3rem;
}

.synthesis-block h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

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

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

.card-number {
    position: absolute;
    top: 2rem;
    left: 2rem;
    width: 40px;
    height: 40px;
    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;
}

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

/* Recommandations */
.recommendations {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.recommendation-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.recommendation-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

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

.recommendation-content p {
    line-height: 1.7;
}

/* Points de vigilance */
.vigilance-block {
    background: #fff3e0;
    padding: 2rem;
    border-radius: 12px;
    border-left: 5px solid #e67e22;
}

.vigilance-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.vigilance-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.vigilance-item i {
    font-size: 2rem;
    color: #e67e22;
    flex-shrink: 0;
}

.vigilance-item strong {
    display: block;
    color: #e67e22;
    margin-bottom: 0.5rem;
}

/* Citation de conclusion */
.synthesis-quote {
    margin-top: 3rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.synthesis-quote blockquote {
    margin: 0;
    padding: 0;
    border: none;
    color: white;
}

.synthesis-quote p {
    font-size: 1.3rem;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.synthesis-quote footer {
    text-align: right;
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
}

/* Responsive */
@media (max-width: 768px) {
    .coalitions-main {
        grid-template-columns: 1fr;
    }
    
    .synthesis-card {
        padding-left: 2rem;
    }
    
    .card-number {
        position: relative;
        top: 0;
        left: 0;
        margin-bottom: 1rem;
    }
    
    .recommendation-item,
    .vigilance-item {
        flex-direction: column;
        text-align: center;
    }
    
    .actors-table {
        font-size: 0.85rem;
    }
    
    .actors-filters {
        flex-direction: column;
    }
    
    .filter-btn {
        width: 100%;
    }
}
