body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f3eee9;
  color: #2e1f14;
  margin: 20px;
}

.container {
  max-width: 900px;
  margin: auto;
  background-color: #f7f2ec;
  padding: 20px 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(46, 31, 20, 0.15);
}

h2 {
  color: #3f2a1e;
  margin-bottom: 25px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Zone de contrôle */
.controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 25px;
  align-items: flex-start;
}

.form-group {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.form-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.form-row .form-group {
  flex: 1;
  min-width: 120px;
}

/* Champs selects et inputs */
select,
input[type="month"] {
  padding: 10px 14px;
  font-size: 1rem;
  border: 2px solid #7c5636;
  border-radius: 5px;
  background-color: #fdf8f3;
  color: #2e1f14;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

#filtreProduit,
.exportateur-group select {
  width: 250px;
}

/* Exportateur + checkbox */
.exportateur-group {
  width: 100%;
}

.exportateur-group .form-row {
  display: flex;
  align-items: center;
  gap: 30px;
}

.checkbox-label {
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: bold;
  color: #3b2a1e;
}

/* Bouton */
.btn-wrapper {
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

button#btnAfficherStats {
  background-color: #3f2a1e;
  color: #fffaf4;
  border: none;
  padding: 10px 24px;
  font-size: 1.05rem;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(63, 42, 30, 0.4);
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-weight: bold;
}

button#btnAfficherStats:hover {
  background-color: #2c1c12;
  transform: translateY(-1px);
}

/* Labels */
label {
  font-weight: bold;
  color: #3b2a1e;
  font-size: 0.95rem;
  background-color: #ede0d1;
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
}

/* Résultat */
#resultatFiltre {
  margin-top: 30px;
  overflow-x: auto;
}

/* Tableau */
table#tableFiltre {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background-color: #fdf8f3;
  border: 1px solid #b89d83;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(75, 59, 43, 0.1);
}

table#tableFiltre th,
table#tableFiltre td {
  padding: 12px 16px;
  border-bottom: 1px solid #e0d3c3;
  color: #2e1f14;
}

table#tableFiltre th {
  background-color: #a6744f;
  color: #fffaf0;
  font-weight: 700;
  text-align: center;
}

table#tableFiltre td {
  text-align: right;
}

table#tableFiltre td:first-child {
  text-align: left;
  font-weight: 600;
}

table#tableFiltre tr:nth-child(even) {
  background-color: #f5e9db;
}

/* Graphiques */
#chartContainer {
  margin-top: 30px;
  background-color: #fdf8f3;
  padding: 20px 25px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(46, 31, 20, 0.1);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

#chartContainer canvas {
  width: 100% !important;
  height: 400px !important;
  display: block;
  margin: auto;
}