/* Reset de la mise en page */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'Open Sans';
    src: url('assets/OpenSansRegular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    background-color: #272727;
    color: #f6f4e6;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #272727;
}

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

.header .nav-buttons {
    display: flex;
    gap: 10px;
}

.header .nav-buttons a {
    text-decoration: none;
    color: white;
    background-color: #7e7e7e;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.header .nav-buttons a:hover {
    background-color: #adadad;
}

h1 {
    color: #ccc;
    text-align: center;
    padding: 20px 0;
}

h2 {
    color: #cccccc;
    margin-left: 10px;
}

form {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    background-color: #333;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

label {
    display: block;
    margin-bottom: 10px;
}

input {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

button {
    border: none;
    cursor: pointer;
    text-decoration: none;
    color: white;
    background-color: #7e7e7e;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #adadad;
}

ul {
    list-style: none;
    margin-top: 20px;
}


#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.spinner-container {
    display: flex;
    align-items: center;
}

.spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

.chart-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 25px;
    margin-left: 25px;
    margin-right: 25px;
}

.chart-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f9f9f9;
    /* Fond blanc ou plus clair */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    /* Ajouter de la marge en bas */
}

.chart-item h2 {
    color: #272727;
    /* Titre en noir */
}

.summary-chart-container {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    margin-left: 300px;
    margin-right: 300px;
}

canvas {
    max-width: 100%;
    height: 200px;
}

.summary-chart {
    height: 50%;
    /* Ajuster la hauteur du graphique récapitulatif */
    width: 50%;
    /* Ajuster la largeur du graphique */
    margin: 10px;
    /* Retirer les marges automatiques */
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

p {
    margin-left: 10px;
}