body {
  font-family: "Open Sans", sans-serif;
}
.heading-font {
  font-family: "Crimson Text", serif;
}
.hero-bg {
  background:
    linear-gradient(rgba(0, 0, 0, 0.349), rgba(0, 0, 0, 0.308)),
    url("../assets/img/geo.jpg") no-repeat center center;
  background-size: cover;
  background-position: center;
}
.card-hover:hover {
  transform: translateY(-10px);
  transition: transform 0.3s ease;
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.animate-fade-in {
  animation: fadeIn 1s ease-out;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-slide-in {
  animation: slideIn 1s ease-out;
}
@keyframes slideIn {
  from {
    transform: translateX(-30px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes progress {
    from { width: 100%; }
    to { width: 0%; }
}

/* Animation pour la notification */
@keyframes slideDown {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.notification-slide {
    animation: slideDown 0.5s ease-out forwards;
}

/* Style pour la notification */
.notification-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: 90%;
    max-width: 500px;
    pointer-events: none;
}

.notification {
    pointer-events: auto;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Bouton de fermeture */
.notification-close {
    cursor: pointer;
    transition: all 0.2s;
}

.notification-close:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

/* ============================================
   STYLES POUR LES GRAPHIQUES CHART.JS
   ============================================ */

.chart-container {
    transition: all 0.3s ease-in-out;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chart-container.hidden {
    display: none;
}

/* Onglets */
.tab-btn {
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.tab-btn:hover {
    transform: translateY(-2px);
}

.tab-btn.active {
    color: #2563EB;
    border-bottom-color: #2563EB;
    border-bottom-width: 2px;
}

/* Cartes de statistiques */
.stat-card {
    transition: all 0.3s ease;
    border-left-width: 4px;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0) 0%, rgba(76,175,80,0.05) 100%);
    z-index: -1;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Canvas responsif */
canvas {
    max-height: 100%;
]>

 max-width: 100%;
}

/* Légende des graphiques */
.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1rem;
    background: #F3F4F6;
    border-radius: 0.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.legend-color {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 3px;
    border: 1px solid #D1D5DB;
}

/* Indicateurs de variation */
.variation-indicator {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.variation-low {
    background-color: #D1FAE5;
    color: #065F46;
}

.variation-medium {
    background-color: #FEF3C7;
    color: #92400E;
}

.variation-high {
    background-color: #FEE2E2;
    color: #7F1D1D;
}

/* Animation pour les graphiques au chargement */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.chart-container {
    animation: slideIn 0.5s ease-out;
}

/* Amélioration des tooltips */
.chartjs-tooltip {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 4px;
    color: white;
    opacity: 1;
    padding: 8px 12px;
    font-size: 12px;
}

/* Section de graphiques */
.visualizations-section {
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
    border-radius: 0.75rem;
    padding: 2rem;
    margin-top: 2rem;
    border: 1px solid #E2E8F0;
}

/* Responsive design pour graphiques */
@media (max-width: 768px) {
    .chart-container {
        padding: 1rem !important;
    }
    
    .tab-btn {
        font-size: 0.875rem;
        padding: 0.5rem 1rem !important;
    }
}