@font-face {
    font-family: 'Proxima Nova';
    src: url('fonts/proximanova_regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Proxima Nova';
    src: url('fonts/proximanova_bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Proxima Nova';
    src: url('fonts/proximanova_black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: 'Proxima Nova';
    src: url('fonts/proximanova_light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Proxima Nova';
    src: url('fonts/proximanova_extrabold.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
}

/* === Général === */
body {
    font-family: 'Proxima Nova', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f6f9;
    color: #000;
}

h1 {
    text-align: center;
    margin-top: 20px;
    color: #ff0050;
}

/* === Filtres === */
#filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 20px;
    gap: 10px;
}

input[type="file"], input[type="date"], button {
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
    transition: all 0.3s ease;
}

input[type="file"] {
    cursor: pointer;
    background-color: #ff0050;
    color: white;
}

button {
    background-color: #ff0050;
    color: white;
    cursor: pointer;
}

button:hover {
    background-color: #ff3366;
}

/* === Premier tableau : Statistiques === */
.statistics {
    max-width: 800px;
    margin: 20px auto;
    text-align: center;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    display: none;
    overflow-x: auto;
}

.statistics table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: white;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.statistics th, .statistics td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center;
    word-wrap: break-word;
}

.statistics th {
    background-color: #ff0050;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

.statistics th:hover {
    background-color: #ff3366;
}

.statistics tr:nth-child(even) {
    background-color: #f9f9f9;
}

.statistics tr:hover td {
    background-color: #f1f1f1;
}

/* === Tableau principal === */
.datatable {
    width: 98%;
    margin: 0 auto;
    text-align: center;
    padding: 20px;
    border-radius: 8px;
}

.datatable table {
    table-layout: auto;
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.datatable th, td {
    padding: 12px 15px;
    max-width: 600px;
    text-align: left;
    border: 1px solid #ddd;
    white-space: normal;
    word-wrap: break-word;
}

.datatable th {
    background-color: #ff0050;
    color: white;
    font-weight: bold;
    cursor: pointer;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.datatable th:hover {
    background-color: #ff3366;
}

.datatable tr:nth-child(even) {
    background-color: #f9f9f9;
}

.datatable tr:hover td {
    background-color: #f1f1f1;
}

/* === Responsive === */
@media (max-width: 1920px) {
    .datatable th, td {
        font-size: 16px;
        padding: 10px;
        max-width: 400px;
    }
}

@media (max-width: 1024px) {
    .datatable th, td {
        font-size: 14px;
        padding: 8px;
        max-width: 200px;
    }
}

@media (max-width: 768px) {
    .datatable {
        width: 100%;
    }

    .datatable table {
        min-width: 1100px;
    }

    .datatable th, td {
        font-size: 12px;
        padding: 6px;
        max-width: 100px;
    }
}

/* === Message === */
#message {
    text-align: center;
    color: #ff0050;
    font-size: 1.1em;
    margin-top: 20px;
}
