/* Grille des publications */
.publications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 1.5rem 0;
}

/* Carte de publication */
.publication-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.publication-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(40, 151, 232, 0.15);
}

.publication-card .card-cover {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.publication-card .card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.publication-card:hover .card-cover img {
    transform: scale(1.03);
}

.publication-card .card-cover .year-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(40, 151, 232, 0.95);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.publication-card .card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.publication-card .card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.publication-card .card-meta {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.publication-card .btn-discover {
    margin-top: auto;
    background: linear-gradient(135deg, #2897e8 0%, #1a7bc9 100%);
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.publication-card .btn-discover:hover {
    background: linear-gradient(135deg, #1a7bc9 0%, #1565a8 100%);
    transform: translateY(-1px);
}

/* Formulaire de recherche */
.search-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.search-card .card-header {
    background: linear-gradient(135deg, #2897e8 0%, #1a7bc9 100%);
    color: white;
    border: none;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
}

.search-card .card-body {
    padding: 1.5rem;
}

.search-form .form-floating {
    margin-bottom: 0.5rem;
}

.search-form .btn-search {
    background: linear-gradient(135deg, #2897e8 0%, #1a7bc9 100%);
    border: none;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
}

.search-form .btn-reset {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
}

.search-form .btn-reset:hover {
    background: #e9ecef;
    color: #495057;
}

/* Pagination */
.pagination {
    margin-top: 2rem;
    justify-content: center;
}

.pagination .page-link {
    border-radius: 8px;
    margin: 0 2px;
}

.pagination .page-item.active .page-link {
    background: #2897e8;
    border-color: #2897e8;
}

@media (max-width: 576px) {
    .publications-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Page détails publication */
.publication-detail-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.publication-detail-header {
    background: #fff;
    padding: 2rem;
    border-bottom: 1px solid #e9ecef;
}

.publication-detail-cover {
    max-width: 200px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.publication-detail-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #212529;
}

.publication-detail-meta {
    font-size: 0.9rem;
    color: #6c757d;
}

.publication-detail-description {
    color: #495057;
    line-height: 1.6;
}

.section-articles,
.section-notes {
    padding: 1.5rem 2rem;
}

.section-articles .section-title,
.section-notes .section-title {
    background: linear-gradient(135deg, #2897e8 0%, #1a7bc9 100%);
    color: white;
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.article-item,
.note-item {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
}

.article-item:hover,
.note-item:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
}

.article-item .article-title,
.note-item .note-title {
    font-weight: 600;
    color: #2897e8;
    text-decoration: none;
}

.article-item .article-title:hover,
.note-item .note-title:hover {
    color: #1a7bc9;
}

.article-item .article-authors,
.note-item .note-authors {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.btn-consulter {
    background: linear-gradient(135deg, #2897e8 0%, #1a7bc9 100%);
    border: none;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
}

.btn-consulter:hover {
    background: linear-gradient(135deg, #1a7bc9 0%, #1565a8 100%);
}

.publication-sidebar .card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.publication-sidebar .card-header {
    background: linear-gradient(135deg, #2897e8 0%, #1a7bc9 100%);
    color: white;
    border: none;
    padding: 1rem 1.25rem;
    font-weight: 600;
    border-radius: 12px 12px 0 0;
}

/* Page article */
.article-detail-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.article-detail-card .card-header {
    background: linear-gradient(135deg, #2897e8 0%, #1a7bc9 100%);
    color: white;
    border: none;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
}

.article-reference-block {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    border-left: 4px solid #2897e8;
    margin: 1rem 0;
}

.article-copy-btn {
    cursor: pointer;
    color: #2897e8;
    font-size: 1.25rem;
    transition: color 0.2s ease;
}

.article-copy-btn:hover {
    color: #1a7bc9;
}

.article-copy-message {
    color: #198754;
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.article-detail-card .nav-tabs {
    border-bottom: 2px solid #e9ecef;
}

.article-detail-card .nav-tabs .nav-link {
    color: #6c757d;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 0.75rem 1.25rem;
    font-weight: 500;
}

.article-detail-card .nav-tabs .nav-link:hover {
    color: #2897e8;
}

.article-detail-card .nav-tabs .nav-link.active {
    color: #2897e8;
    background: transparent;
    border-bottom-color: #2897e8;
}

.article-detail-card .tab-content {
    padding: 1.5rem 0;
}

.article-detail-card .tab-content p {
    line-height: 1.7;
    color: #495057;
}

.article-loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    padding: 20px;
    border-radius: 10px;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Page résultats de recherche */
.search-results-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.search-results-card .card-header {
    background: linear-gradient(135deg, #2897e8 0%, #1a7bc9 100%);
    color: white;
    border: none;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
}

.search-results-form .btn-search {
    background: linear-gradient(135deg, #2897e8 0%, #1a7bc9 100%);
    border: none;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
}

.search-result-item {
    padding: 1.25rem 1.5rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
}

.search-result-item:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
}

.search-result-item .article-title {
    font-weight: 600;
    color: #2897e8;
    text-decoration: none;
}

.search-result-item .article-title:hover {
    color: #1a7bc9;
}

.search-result-item .article-meta {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 0.35rem;
}

.search-result-item .btn-consulter {
    margin-top: 0.75rem;
}