:root {
  --bordeaux: #6D1F42;
  --vert-lagon: #59B3AE;
  --orange-vif: #EF6F3C;
  --beige: #DAB595;
  --gris-texte: #858585;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,600;0,700;0,900;1,900&display=swap');
body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #E8EBF0; color: #333; line-height: 1.6; min-height: 100vh; font-weight: 400;
}
.container { max-width: 1400px; margin: 0 auto; padding: 20px; }
.header {
  background: linear-gradient(135deg, var(--bordeaux) 0%, #8b2f5a 100%);
  padding: 20px 40px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); margin-bottom: 0;
  display: flex; align-items: center; justify-content: space-between;
}
.header-content { display: flex; align-items: center; gap: 25px; }
.header-text h1 {
  font-size: 1.5rem; font-weight: 700; font-style: italic; color: white;
  margin-bottom: 2px; letter-spacing: -0.3px; line-height: 1.1;
}
.header-text .sur-titre {
  font-size: 0.65rem; color: rgba(255, 255, 255, 0.85); font-weight: 400;
  text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 0;
}
.header-text p { font-size: 0.8rem; color: rgba(255, 255, 255, 0.8); font-weight: 300; }
.tabs {
  display: flex; gap: 0; margin-bottom: 0; background: white;
  padding: 0; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.tab {
  flex: 1; padding: 15px 25px; background: white; border: none; cursor: pointer;
  font-size: 0.95rem; font-weight: 600; color: var(--gris-texte);
  transition: all 0.3s ease; border-bottom: 3px solid transparent; position: relative;
}
.tab:hover { background: #f8f9fa; color: var(--bordeaux); }
.tab.active { color: var(--bordeaux); border-bottom-color: var(--bordeaux); background: white; }
.tab-content { display: none; animation: fadeIn 0.4s ease; }
.tab-content.active { display: block; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.section {
  background: white; padding: 25px; border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); margin-bottom: 20px;
}
.section-title {
  font-size: 1.2rem; font-weight: 700; color: var(--bordeaux);
  margin-bottom: 20px; border-bottom: 2px solid var(--bordeaux); padding-bottom: 10px;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px; margin-bottom: 20px;
}
.stat-card {
  background: white; padding: 20px; border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); border-left: 4px solid var(--bordeaux);
}
.stat-label {
  font-size: 0.85rem; color: var(--gris-texte); margin-bottom: 5px; font-weight: 500;
}
.stat-value { font-size: 1.8rem; font-weight: 800; color: var(--bordeaux); }
.chart-wrapper {
  background: white; padding: 20px; border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); margin-bottom: 20px;
}
.chart-title {
  font-size: 0.95rem; font-weight: 600; color: #4B5563;
  margin-bottom: 15px; text-align: left;
}
.chart-container { position: relative; height: 300px; margin: 0 auto; }
table { width: 100%; border-collapse: collapse; margin-top: 15px; }
th, td { padding: 12px; text-align: left; border-bottom: 1px solid #e0e0e0; }
th {
  background: var(--bordeaux); color: white; font-weight: 600; font-size: 0.9rem;
}
tr:hover { background: #f8f9fa; }
.filter-section {
  background: white; padding: 20px; border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); margin-bottom: 20px;
  display: flex; gap: 15px; flex-wrap: wrap; align-items: center;
}
select, input {
  padding: 10px 15px; border: 1px solid #ddd; border-radius: 5px;
  font-size: 0.9rem; font-family: 'Montserrat', sans-serif;
  background: white; color: #333;
}
select:focus, input:focus { outline: none; border-color: var(--bordeaux); }
.loading { text-align: center; padding: 40px; color: var(--gris-texte); }
.spinner {
  border: 3px solid #f3f3f3; border-top: 3px solid var(--bordeaux);
  border-radius: 50%; width: 40px; height: 40px;
  animation: spin 1s linear infinite; margin: 0 auto 15px;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.positive { color: #28a745; }
.negative { color: #dc3545; }
.gris-clair { background: #f8f9fa; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--bordeaux); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #8b2f5a; }
