/* Apply Inter font globally */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0; /* Supprime le padding par défaut du body */
    overflow-x: hidden; /* Empêche la barre de défilement horizontale */
}

/* Custom styles for Chart.js tooltips if needed */
.chartjs-tooltip {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 12px;
}

/* Ensure charts are responsive */
/* Default chart container height - adjust inline where needed */
.chart-container {
    position: relative;
    margin: auto;
    height: 350px; /* Default height */
    width: 100%;
}

#vis-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 0;
    padding: 20px;
    box-sizing: border-box;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #6366f1;
    margin-bottom: 2rem;
    text-align: center;
    width: 100%;
}

.card {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 3rem;
    margin-bottom: 2rem;
    width: 100%;
    box-sizing: border-box;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1.5rem;
}

.bar-chart {
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.bar {
    fill: #a7f3d0;
}

.bar:hover {
    fill: #34d399;
}

.bar-label {
    fill: #1f2937;
    font-size: 0.875rem;
}

.value-label {
    fill: white;
    font-size: 1rem;
    font-weight: 600;
}

.axis {
    font-size: 0.875rem;
    color: #4b5563;
}

.axis path,
.axis line {
    fill: none;
    stroke: #d1d5db;
}

.pie-chart {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.pie-slice path {
    /* fill: #fcd34d; */ /* Removed fixed fill color to allow D3 scale */
    stroke: white;
    stroke-width: 2px;
    transition: fill 0.3s ease;
}

/*
.pie-slice path:hover {
    fill: #f59e0b;
}
*/

.pie-slice text {
    fill: #1e293b;
    font-size: 1rem;
    font-weight: 500;
}

.legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    width: 100%;
    max-width: 1200px;
    box-sizing: border-box;
    padding-left: 20px;
    padding-right: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.legend-color {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 0.375rem;
}

.legend-text {
    font-size: 1rem;
    color: #374151;
}

#role-needs {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #f7fafc;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
}

#role-needs h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

#role-needs ul {
    list-style-type: disc;
    padding-left: 2rem;
    margin-bottom: 1rem;
}

#role-needs li{
     font-size: 1rem;
     color: #4b5563;
}

/* ====== Network Graph Styles Removed ====== */

@media (max-width: 768px) {
    .card {
        padding: 2rem;
        width: 100%;
    }
    .section-title {
        font-size: 2rem;
    }
    .bar-chart {
        height: 250px;
    }
    .pie-chart {
        height: auto;
        flex-direction: column;
        align-items: center;
    }
    .legend {
        flex-direction: column;
    }
     #role-needs {
        padding: 1rem;
    }
}

@media (max-width: 640px) {
    .card {
        padding: 1.5rem;
    }
    .section-title {
        font-size: 1.75rem;
    }
    .bar-chart {
        height: 200px;
    }
    .pie-chart {
        flex-direction: column;
        align-items: center;
    }
    .legend {
        flex-direction: column;
    }
    .legend-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .legend-text {
        margin-top: 0.5rem;
    }
     #role-needs {
        padding: 1rem;
    }
} 