/* Styles généraux */
body {
    background-color: #f8f9fa;
}

/* Style des cartes */
.card {
    margin-bottom: 1.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

/* Tableaux */
.table-stats {
    font-size: 0.9rem;
}

.table-stats th {
    background-color: #f8f9fa;
    font-weight: 600;
}

/* Indicateurs */
.indicator {
    padding: 0.5rem;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
}

.indicator-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #6c757d;
}

.indicator-value {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Couleurs pour les variations */
.variation-positive {
    color: #198754;
}

.variation-negative {
    color: #dc3545;
}

.variation-neutral {
    color: #6c757d;
}

/* Badges personnalisés */
.badge-trend {
    padding: 0.5em 0.75em;
    font-weight: 500;
}

.badge-trend-up {
    background-color: #d1e7dd;
    color: #0f5132;
}

.badge-trend-down {
    background-color: #f8d7da;
    color: #842029;
}

/* Graphiques */
.chart-container {
    position: relative;
    height: 300px;
    margin-bottom: 1.5rem;
}

/* Alertes personnalisées */
.alert-custom {
    border-left: 4px solid;
    background-color: white;
}

.alert-warning-custom {
    border-left-color: #ffc107;
}

.alert-danger-custom {
    border-left-color: #dc3545;
}

.alert-success-custom {
    border-left-color: #198754;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .card {
        margin-bottom: 1rem;
    }
    
    .indicator-value {
        font-size: 1.2rem;
    }
    
    .chart-container {
        height: 200px;
    }
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.navbar-brand {
    font-weight: 600;
}

/* Formulaire */
.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Boutons */
.btn-action {
    padding: 0.5rem 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Loading spinner */
.spinner-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;
}

/* Tooltips personnalisés */
.custom-tooltip {
    position: relative;
    display: inline-block;
}

.custom-tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    white-space: nowrap;
}

/* Analyse Stratégique */
.accordion-button {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.accordion-button:not(.collapsed) {
    background-color: #f8f9fa;
    color: #0d6efd;
}

.accordion-body .card {
    margin-bottom: 0.5rem;
}

.accordion-body .card-header {
    padding: 0.5rem;
}

.accordion-body .list-group-item {
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
}

.accordion-body .badge {
    font-size: 0.75rem;
    padding: 0.25em 0.5em;
}

/* Réduire l'espacement général */
.card-body {
    padding: 0.75rem;
}

.row.g-2 {
    margin: -0.5rem;
}

.row.g-2 > [class*="col-"] {
    padding: 0.5rem;
} 