/* Styles pour le graphique en aires */
.area-chart-container {
    font-family: var(--heading-font, 'Rubik', sans-serif);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.area-chart-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.area-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color, #000B10);
}

.area-legend-color {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.area-chart-content {
    flex-grow: 1;
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: 1fr auto;
    gap: 10px;
}

.area-y-axis {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-right: 10px;
    font-size: 0.85rem;
    color: var(--text-color, #000B10);
    font-weight: 500;
    text-align: right;
    border-right: 1px solid #eee;
}

.area-chart-plot {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    position: relative;
    height: 100%;
}

.area-grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.5em 0;
    box-sizing: border-box;
}

.area-grid-line {
    width: 100%;
    height: 1px;
    background-color: #f0f0f0;
}

.area-x-axis {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    display: flex;
    justify-content: space-between;
    padding: 10px 15px 0 15px;
    font-size: 0.85rem;
    color: var(--text-color, #000B10);
    font-weight: 500;
    text-align: center;
}

/* Graphique lui-même */
.area-chart-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.area-negative-line {
    stroke: #FF647C;
    stroke-width: 3;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.area-negative-fill {
    fill: #FF647C;
    fill-opacity: 0.15; /* Augmenté légerement pour plus de visibilité */
}

.area-data-point {
    stroke-width: 2;
    stroke: #fff;
    r: 5;
}

.area-negative-point {
    fill: #FF647C;
}
