body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background-color: rgb(185, 222, 240);
    color: #333;
}

* {
    box-sizing: border-box; /*empêche les débordements dus aux bordures/padding */
}


.colonnes {
    display: flex;
    flex-direction: column;   /* tout est empilé verticalement */
    width: 100vw;
    height: 100vh;
    gap: 20px;
    padding: 20px;
}

.bloc.en-haut{
    text-align: left;
    width: 100%;
    height: 100%;
    flex: 1;        /* 1 part de hauteur */
    border-radius: 10px;
    background-color: #f1f4f8;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.contenu-principal {
    display: flex;
    flex: 9;        /* prend le reste de la page */
    gap: 20px;
}

.bloc.gauche{
    width: 100%;
    height: 100%;
    flex: 1;       /* moitié gauche */
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);

    padding: 20px;    /* Crée l'espace entre le bord de la carte et le tableau */
    background-color: #f1f4f8;
}


.bloc.droite {
    display: flex;
    flex-direction: column;
    flex: 1;       /* moitié droite */
    gap: 20px;
    
}

.bloc.droite.haut{
    text-align: left;
    padding-left: 10px;
    flex: 2;      /* plus grand que le bas */
    border-radius: 10px;
    width :100%;
    height: 100%;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);

    background-color: #f1f4f8;
}

.bloc.droite.bas{
    text-align: left;
    padding-left: 10px;
    flex: 1;      /* plus petit que le haut */
    border-radius: 10px;
    width: 100%;
    height:100%;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);

    background-color: #f1f4f8;
}


.menus select {
    margin-right: 10px;           /* espace entre les menus déroulants */
    margin-top: 22px;
    margin-left: 10px;
    height: 50%;
    width: 7%;
    border: none;
    border-radius: 5px;
}

.menus button{
    width: 20px;
    margin-top:20px ;
    margin-left: 69%;   /*bloque le bouton ? à droite du bloc en haut*/
    margin-right: 10px;
    border-radius: 10px;
    border: none;
}

#caméra{
    height: 50%;
    width: 7%;
    margin-top: 17px;
    margin-left: 10px;
}

#mois{
    height: 50%;
    width: 7%;
    margin-top: 17px;
    margin-left: 20px;
}

#jour{
    height: 50%;
    width: 7%;
    margin-top: 17px;
    margin-left: 20px;
}

.chart-wrapper {
    flex-grow: 1;
    position: relative; /* Crucial pour le mode responsive */
}

table {
    width: 100%;
    border-collapse: separate; /* Changé pour permettre des bords arrondis propres */
    border-spacing: 0;
}

/* Aligner les titres exactement comme les données */
th {
    position: sticky;
    top: 0;
    background-color: #f8f9fa;
    padding: 15px 20px; /* Même padding que les td */
    text-align: left;    /* Alignement par défaut à gauche */
    font-size: 0.75rem;
    color: #7f8c8d;
    z-index: 10;
    border-bottom: 2px solid #edf2f7;
}

td {
    padding: 15px 20px; /* Même padding que les th */
    text-align: left;    /* Alignement par défaut à gauche */
    border-bottom: 1px solid #f1f4f8;
}

.color-cell {
    display: flex;
    align-items: center;
    gap: 8px; 
}

.color-badge {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.color-text {
    font-family: monospace;
}