body {
    background-color: white;
}
:root {
    --bs-primary: #DC2F43FF;
    --bs-primary-rgb: rgba(220, 47, 67, 1);
    --bs-btn-bg: var(--bs-primary)!important;
    --bs-btn-border-color: var(--bs-primary)!important;
    --bs-btn-hover-bg: #B22A38FF!important;
}

/* Pagination personnalisée */
.custom-pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 30px 0;
    justify-content: center;
}

.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.btn-primary:hover {
    background-color: #B22A38FF;
    border-color: #B22A38FF;
}

.pagination-item {
    display: inline-block;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    min-width: 40px;
    height: 40px;
    justify-content: center;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background-color: #ffffff;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.container.books-container {
    padding-left: 0;
    padding-right: 0;
}

/* Hover sur les liens actifs */
.pagination-item:not(.active):not(.disabled):not(.dots) .pagination-link:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
    color: #111827;
}

/* Page active */
.pagination-item.active .pagination-link {
    background-color: #ffffff;
    border-color: var(--bs-primary);
    color: var(--bs-primary);
    font-weight: 600;
    cursor: default;
}

/* Boutons désactivés (Précédent sur page 1, Suivant sur dernière page) */
.pagination-item.disabled .pagination-link {
    background-color: #f9fafb;
    border-color: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Points de suspension */
.pagination-item.dots .pagination-link {
    border: none;
    background: transparent;
    cursor: default;
    padding: 8px 4px;
    min-width: auto;
}

.pagination-item.dots .pagination-link:hover {
    background: transparent;
}

/* SVG icons */
.pagination-link svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 640px) {
    .custom-pagination {
        gap: 4px;
    }

    .pagination-link {
        padding: 6px 10px;
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }
}
/* Formulaire de recherche */
.search-section {
    max-width: 900px;
    margin: 0 auto 30px;
}

.search-form {
    width: 100%;
}

.search-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.search-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    pointer-events: none;
    z-index: 1;
}

.search-input {
    flex: 1;
    padding: 14px 16px 14px 48px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    color: #111827;
    background-color: #f9fafb;
    transition: all 0.2s ease;
    outline: none;
}

.search-input:focus {
    background-color: #ffffff;
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-input::placeholder {
    color: #9ca3af;
}

.search-button {
    padding: 14px 32px;
    background-color: #000000;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.search-button:hover {
    background-color: #1f2937;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.search-button:active {
    transform: translateY(0);
}

/* Informations sur les résultats de recherche */
.search-results-info {
    padding: 12px 16px;
    background-color: #f0f9ff;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    font-size: 14px;
    color: #1e40af;
}

.search-results-info p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.reset-search {
    color: var(--bs-primary);
    text-decoration: none;
    font-weight: 500;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}

.reset-search:hover {
    color: var(--bs-primary);
    text-decoration: underline;
}

/* Message aucun résultat */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.no-results p {
    font-size: 16px;
    margin: 0;
}

/* Style des cartes de livres */
.book-card {
    display: flex;
    border: 1px solid #e5e7eb;
    padding: 20px;
    margin-bottom: 16px;
    border-radius: 8px;
    background-color: #ffffff;
    transition: box-shadow 0.2s ease;
}

.book-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.book-content {
    width: 100%;
}

.book-header h2 {
    margin: 0 0 8px 0;
    font-size: 20px;
    color: #111827;
    font-weight: 600;
}

.book-header h3 {
    margin: 0 0 16px 0;
    font-size: 16px;
    color: #6b7280;
    font-weight: 400;
}

.book-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
    font-size: 14px;
    color: #374151;
}

.book-details > div {
    padding: 4px 0;
}

.book-details strong {
    color: #111827;
    font-weight: 600;
}

.ts-dropdown-content {
    max-height: 60vh !important;
}

.ts-dropdown-content a {
    color: #111827;
}
.ts-dropdown-content a:hover {
    background-color: rgba(220, 47, 67, 0.1);
}

.ts-wrapper.search-input {
    padding: 0;
}

.ts-wrapper.search-input > .ts-control {
    padding-left: 1rem;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
    background: transparent;
    border: none;
    box-shadow: none;
}
.ts-wrapper.search-input.focus {
    border: rgba(220, 47, 67, 0.6) 1px solid;
}
.turbo-progress-bar {
    background-color: var(--bs-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .search-wrapper {
        flex-direction: column;
        gap: 8px;
    }

    .search-button {
        width: 100%;
    }

    .search-icon {
        left: 12px;
    }

    .search-input {
        padding-left: 40px;
    }

    .book-details {
        grid-template-columns: 1fr;
    }

    .search-results-info p {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .reset-search {
        margin-left: 0;
    }
}
