/* Reset et base */
body {
    background-color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Header principal */
header {
    background-color: #ffffff;
}

header .container-xxl {
    max-width: 1320px;
}

/* Navigation avec underline */
.nav-underline .nav-link {
    color: #495057;
    font-weight: 500;
    padding: 0.5rem 0;
    margin: 0 0.5rem;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.nav-underline .nav-link:hover {
    color: #212529;
    border-bottom-color: #dee2e6;
}

.nav-underline .nav-link.active {
    color: #212529;
    border-bottom-color: #212529;
}

/* Bandeau Breaking News */
.badge.text-bg-danger {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35em 0.65em;
}

/* Cards modernes */
.card {
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Ratio pour images */
.ratio {
    background-color: #f8f9fa;
}

.object-fit-cover {
    object-fit: cover;
}

/* Carousel personnalisé */
.carousel-caption {
    bottom: 1rem;
    left: 1rem;
    right: auto;
    padding: 1rem;
    max-width: 60%;
}

.carousel-caption h5 {
    font-size: 1.25rem;
    font-weight: 600;
}

.carousel-caption p {
    font-size: 0.875rem;
}

/* Colonnes responsive */
@media (max-width: 991.98px) {
    .order-lg-1 { order: 1 !important; }
    .order-lg-2 { order: 2 !important; }
    .order-lg-3 { order: 3 !important; }
}

/* Badges de catégories */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* Titres */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: #212529;
}

.h6 {
    font-size: 0.95rem;
}

/* Liens dans les articles */
.link-dark {
    color: #212529 !important;
}

.link-dark:hover {
    color: #495057 !important;
}

/* Footer */
footer {
    background-color: #ffffff;
}

footer .nav-link {
    color: #6c757d;
    font-size: 0.875rem;
}

footer .nav-link:hover {
    color: #212529;
}

/* Offcanvas mobile */
.offcanvas-body .link-dark {
    padding: 0.5rem 0;
    display: block;
}

/* Boutons personnalisés */
.btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
}

.btn-success {
    background-color: #198754;
    border-color: #198754;
}

.btn-outline-secondary {
    color: #6c757d;
    border-color: #dee2e6;
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
}

/* Vstack avec bordures */
.vstack article {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.vstack article:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none !important;
}

/* Typographie small */
.small {
    font-size: 0.875rem;
}

/* Container xxl */
.container-xxl {
    padding-right: 1rem;
    padding-left: 1rem;
}

@media (min-width: 1400px) {
    .container-xxl {
        max-width: 1320px;
    }
}

/* Dropdown amélioré */
.dropdown-menu {
    border: 1px solid #dee2e6;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.dropdown-item {
    padding: 0.5rem 1rem;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

/* Modal de recherche */
.modal-content {
    border-radius: 0.5rem;
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
}

/* Formulaires */
.form-control {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
}

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

/* Articles avec images */
.article img {
    border-radius: 0.375rem;
}

/* Live badge */
.badge.text-bg-danger {
    background-color: #dc3545 !important;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

/* Responsive text truncate */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Accessibility - Focus visible */
:focus-visible {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    header, footer, aside, .btn, .badge {
        display: none !important;
    }
    
    main {
        max-width: 100% !important;
    }
}