:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

.navbar-brand img {
    margin-right: 10px;
}

.stat-card {
    border-radius: 10px;
    padding: 20px;
    margin: 10px;
    text-align: center;
    color: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.stat-card i {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.stat-card h3 {
    font-size: 2.5rem;
    margin: 10px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.quick-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.dashboard h1 {
    color: var(--primary-color);
    margin-bottom: 30px;
}

.recent-submissions {
    margin-top: 40px;
}

.table th {
    background-color: var(--primary-color);
    color: white;
}

.btn-group .btn {
    margin: 0 2px;
}

.card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

.card-header {
    border-bottom: none;
    font-weight: 600;
}

.form-control:focus, .form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
}

.alert {
    border-radius: 8px;
    border: none;
}

.img-thumbnail {
    border-radius: 8px;
    border: 2px solid #dee2e6;
}

.badge {
    font-size: 0.8em;
    padding: 5px 10px;
    border-radius: 20px;
}

.nav-tabs .nav-link {
    border: none;
    color: #6c757d;
    font-weight: 500;
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
    background-color: transparent;
}

.cropper-container {
    max-width: 100%;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions {
        flex-direction: column;
    }
    
    .quick-actions .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* ===== En-tête & pied de page institutionnels ===== */
.institution-header .inst-logo{
    object-fit: contain;
}

.site-footer{
    /* évite le chevauchement avec la bottom-nav mobile */
    padding-bottom: 4.5rem;
}

@media (min-width: 992px){
    .site-footer{ padding-bottom: 1.5rem; }
}
