/* Style général de l'application */
#bt-search-app {
    font-family: sans-serif;
    margin: 2em 0;
}

/* Formulaire */
.bt-form {
    background: #f4f4f4;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}
.bt-form .bt-form-main {
    display: flex;
    gap: 10px;
}
.bt-form input[type="text"],
.bt-form select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.bt-form .bt-input-large {
    flex-grow: 1;
}
.bt-form .bt-filters {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

/* Boutons */
.bt-button, .bt-toggle-favorite, .bt-voir-citation {
    /* ----- MODIFICATION ICI : Taille réduite ----- */
    padding: 6px 12px !important;
    font-size: 0.8em !important; 
    /* ----- FIN DE LA MODIFICATION ----- */
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap; /* Empêche le texte du bouton de passer à la ligne */
}
.bt-button:hover, .bt-toggle-favorite:hover, .bt-voir-citation:hover {
    background: #005177;
}

/* Grille de résultats */
.bt-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Carte de citation */
.bt-citation-card {
    border: 1px solid #e0e0e0;
    border-left: 5px solid #0073aa;
    border-radius: 5px;
    padding: 15px;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.bt-card-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    /* ----- MODIFICATION ICI : Centrage des boutons ----- */
    justify-content: center;
    /* ----- FIN DE LA MODIFICATION ----- */
}

/* Bouton favori */
.bt-toggle-favorite {
    background-color: #6c757d;
}
.bt-toggle-favorite.favorited {
    background-color: #ffc107;
    color: #333;
}
.bt-toggle-favorite .bt-favorite-icon {
    font-size: 1.2em;
    vertical-align: middle;
}
.bt-toggle-favorite .bt-favorite-text {
    vertical-align: middle;
}


/* Pagination */
.bt-pagination {
    margin-top: 25px;
    text-align: center;
}
.bt-pagination .bt-page-link {
    padding: 8px 12px;
    margin: 0 5px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #0073aa;
}
.bt-pagination .bt-page-link.active {
    background-color: #0073aa;
    color: white;
    font-weight: bold;
}

/* Modale */
.bt-modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    display: none; z-index: 99998;
}
.bt-modal {
    display: none;
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 90%; max-width: 600px;
    max-height: 85vh;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    padding: 25px;
    z-index: 99999;
    overflow-y: auto;
}
.bt-modal-overlay.active, .bt-modal.active {
    display: block;
}
.bt-modal-content h3 { margin-top: 0; }
.bt-modal-content blockquote {
    font-style: italic;
    margin: 20px 0;
    padding-left: 15px;
    border-left: 3px solid #eee;
    white-space: pre-wrap;
}
#bt-modal-close {
    margin-top: 20px;
}
#modal-pj-container img {
    max-width: 100%;
    height: auto;
    margin-top: 15px;
    border: 1px solid #ddd;
    padding: 5px;
}