/* ==========================================
   1. STRUCTURE GLOBALE
   ========================================= */

body { 
    margin: 0; 
    height: 100vh; 
    display: flex;
    flex-direction: column; 
    overflow: hidden; 
    font-family: 'Segoe UI', sans-serif; 
    background-color: #f0f3f5;
}


/* zone header : alignement espacé des éléments et ombre de profondeur. */
header {
    flex-shrink: 0; 
    height: 60px; 
    background: #1a252f;
    color: white;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 10;
}

/* zone principale : accueil des panneaux gauche et droit. */
.conteneur {
    position: relative;    /* Devient le point de repère fixe */
    flex: 1;
    width: 100%;
    height: calc(100vh - 60px); /* Hauteur exacte restante */
    overflow: hidden;      /* AUCUN scroll autorisé ici */
    background: #f0f3f5;
}


/* Panneau gauche  */
.panneau-pilotage {
    position: absolute;
    top: 15px;
    left: 15px;
    bottom: 15px;
    width: 150mm;
    background: #f8f9fa;
    border-radius: 12px;
    overflow-y: auto;
    overflow-x: hidden; /* Sécurité pour éviter un scroll horizontal parasite */
    padding: 15px 15px 15px 15px; /* Top, Right, Bottom, Left */
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}


/* Panneau droit  */
#charts-container { 
    flex: 3.5; 
    display: flex; 
    flex-direction: column; 
    background: white; 
    padding: 10px; 
    border-radius: 12px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); 
    min-height: 0; 
    overflow: hidden;
}


