/* Mise en page de la station météo */
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: Arial, Helvetica, sans-serif;
    background: #EAF2F8;
    color: #1B2631;
}

header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 30px;
    background: #2E86C1;
    color: white;
}

header h1 {
    margin: 0;
    font-size: 28px;
}

header h1 span {
    font-size: 18px;
    font-weight: normal;
}

main {
    flex: 1;
    padding: 30px;
}

/* Les deux zones côte à côte, de même largeur et de même hauteur */
.zones {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.carte {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    padding: 20px;
    width: 300px; /* les deux zones ont la même taille */
}

.carte h2 {
    margin-top: 0;
    font-size: 18px;
    color: #2E86C1;
}

#gaugeContainer {
    width: 200px;
    height: 200px;
    margin: auto;
}

.boutons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

#tableMesures {
    border-collapse: collapse;
    width: 100%;
}

/* Fenêtre de 7 lignes : en-tête + 7 lignes de 31 px, le reste défile */
#fenetre {
    max-height: 249px;
    overflow-y: auto;
    border-top: 1px solid #AEB6BF; /* bordure haute de l'en-tête fixe */
}

#tableMesures th,
#tableMesures td {
    line-height: 18px;
    border: 1px solid #AEB6BF;
    padding: 6px 12px;
    text-align: center;
}

#tableMesures th {
    background: #D6EAF8;
    position: sticky; /* l'en-tête reste visible pendant le défilement */
    top: 0;
    position: sticky;
    top: 0;
}

footer {
    text-align: center;
    padding: 12px;
    background: #2E86C1;
    color: white;
    font-size: 14px;
}

#moyenne {
    margin: 12px 0 0;
    font-weight: bold;
    text-align: center;
}

/* Zone du graphique : largeur des deux zones du dessus + l'espace entre elles */
.graphique {
    width: 710px;
}

#chartContainer {
    width: 100%;
    height: 320px;
}
