:root {
    --transition-speed: 0.3s;
}

body {
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

[data-bs-theme="light"] body {
    background-color: #f8f9fa;
}

[data-bs-theme="dark"] .card {
    background-color: #1e1e1e;
    border: 1px solid #333 !important;
}

.animate-fade-in {
    animation: fadeIn var(--transition-speed) ease-out;
}

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

.transition-base {
    transition: all var(--transition-speed) ease-in-out;
}

.transition-base:hover {
    transform: translateY(-2px);
}

.form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 500;
}

[data-bs-theme="light"] .nav-link {
    color: #495057 !important;
}

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

a:focus-visible, button:focus-visible {
    outline: 3px solid var(--bs-primary);
    outline-offset: 2px;
}

.post-tags-selector {
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.post-tags-selector .form-check {
    margin-bottom: 0.5rem;
}

.post-form-card {
    border: 0 !important;
    box-shadow: var(--bs-box-shadow-sm) !important;
}

.post-form-header {
    margin-bottom: 2rem;
    text-align: center;
}

.post-form-header i {
    font-size: 3.5rem;
    color: var(--bs-primary);
    margin-bottom: 0.5rem;
    display: block;
}

.post-form-header h1 {
    font-weight: 700;
    font-size: 1.75rem;
}

.post-form-label {
    font-weight: 700;
}

.post-form-title-input {
    font-size: 1.25rem;
}

.post-form-sidebar-card {
    background-color: var(--bs-light) !important;
    border: 0 !important;
    margin-bottom: 1.5rem;
}

.post-form-sidebar-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.post-content {
    line-height: 1.6;
}

.post-content-header {
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--bs-primary);
    padding-bottom: 1rem;
}

.post-content-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--bs-primary);
}

.post-content-section {
    margin-bottom: 1.5rem;
}

.post-content-subtitle {
    font-size: 1.75rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: var(--bs-secondary);
}

.post-content-paragraph {
    margin-bottom: 1rem;
}

/* Styles pour les insertions HTML dans le contenu */
.btn-group-sm > .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

[data-bs-theme="dark"] .btn-outline-secondary {
    color: #adb5bd;
    border-color: #495057;
}

[data-bs-theme="dark"] .btn-outline-secondary:hover {
    background-color: #495057;
    color: #fff;
}
