/* ===== GLOBAL ===== */
body {
    margin: 0;
    font-family: system-ui, sans-serif;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #e5e7eb;
}

/* ===== CONTAINER ===== */
.box {
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
}

/* ===== HEADER + STATS ===== */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.top-bar h1 {
    font-size: 2rem;
    font-weight: 600;
    background: linear-gradient(90deg, #facc15, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===== STATS BOX ===== */
.stats-box {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    padding: 18px 22px;
    border-radius: 16px;
    min-width: 260px;
    box-shadow: 0 0 25px rgba(0,0,0,0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stats-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 35px rgba(250, 204, 21, 0.2);
}

.stats-box h3 {
    margin-bottom: 10px;
    color: #facc15;
}

/* Animation icônes */
.stats-box span {
    display: inline-block;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

/* ===== CONTROLS ===== */
.controls {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.controls input,
.controls select {
    padding: 10px 14px;
    font-size: 1rem;
    border-radius: 10px;
    border: 1px solid #334155;
    background: rgba(30, 41, 59, 0.7);
    color: #e5e7eb;
    transition: 0.3s;
}

.controls input:focus,
.controls select:focus {
    outline: none;
    border-color: #facc15;
    box-shadow: 0 0 10px #facc1555;
}

/* ===== CHART CONTAINERS ===== */
.chart-container {
    position: relative;
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(12px);
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 18px;
    box-shadow: 0 0 30px rgba(0,0,0,0.4);
    transition: 0.3s;
}

.chart-container:hover {
    box-shadow: 0 0 40px rgba(59,130,246,0.2);
}

.chart-container canvas {
    width: 100% !important;
    height: 260px !important;
}

/* ===== STATS SOUS GRAPHIQUE ===== */
.chart-container div {
    margin-top: 12px;
    font-size: 0.95rem;
    text-align: center;
    opacity: 0.9;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .top-bar {
        flex-direction: column;
    }
    .stats-box {
        width: 100%;
        margin-top: 15px;
    }
}
.mois-container{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin:15px 0 20px 0;
}

.mois-container button{
    background:#1e293b;
    border:1px solid #334155;
    color:#e5e7eb;
    padding:6px 12px;
    border-radius:8px;
    cursor:pointer;
    transition:all 0.25s ease;
    font-weight:500;
}

.mois-container button:hover{
    background:#334155;
    transform:translateY(-2px);
}

.mois-container button.active{
    background:#ef4444;
    border-color:#ef4444;
    box-shadow:0 0 10px rgba(239,68,68,0.6);
}
