/* Variables CSS par défaut */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --background-color: #f8f9fa;
}

/* Styles généraux */
body {
    background-color: var(--background-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.navbar {
    background-color: white !important;
    box-shadow: 0 2px 10px rgba(0,0,0,.1);
    transition: all 0.3s ease;
}

.navbar-brand {
    color: var(--primary-color) !important;
    font-weight: bold;
}

.nav-link {
    color: var(--secondary-color) !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Main content */
main {
    flex: 1;
    padding-top: 20px;
    padding-bottom: 40px;
}

.content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}

.content-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.content-body table, 
.content-body th, 
.content-body td {
    border: 1px solid #dee2e6;
}

.content-body th, 
.content-body td {
    padding: 12px;
    text-align: left;
}

.content-body th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.content-body pre, 
.content-body code {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
    font-family: 'Courier New', monospace;
    overflow-x: auto;
}

/* Footer amélioré */
footer {
    background-color: var(--secondary-color) !important;
    color: white !important;
    margin-top: auto;
}

footer a {
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: white !important;
    text-decoration: underline;
}

footer .border-top {
    border-color: rgba(255, 255, 255, 0.15) !important;
}

/* Boutons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 10px 25px;
    border-radius: 6px;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Cartes */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Badges */
.badge {
    padding: 8px 12px;
    border-radius: 20px;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-nav {
        padding-top: 10px;
    }
    
    .nav-link {
        padding: 10px 15px !important;
    }
    
    footer .row > div {
        margin-bottom: 30px;
    }
}

/* Animation pour les liens */
a {
    transition: all 0.3s ease;
}

/* Amélioration des formulaires */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(var(--primary-color-rgb), 0.25);
}

/* Breadcrumb */
.breadcrumb {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 12px 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
