/* Bible Page Styles */

html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    padding-top: 10px;
    overflow-x: hidden;
    box-sizing: border-box;
}

.bible-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    word-break: break-word;
    overflow-wrap: break-word;
    width: 100%;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

.bible-header {
    background: white;
    color: black;
    padding: 20px 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.bible-header h2 {
    margin: 0;
    font-size: 28px;
}

.header-controls {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.version-selector {
    display: flex;
    gap: 10px;
    align-items: center;
}

.version-selector label {
    font-weight: bold;
    margin-right: 10px;
    white-space: nowrap;
}

.version-selector select {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    background: white;
    color: #6580B6;
    font-weight: bold;
    cursor: pointer;
    min-width: 200px;
}

.version-selector select:hover {
    background: #f0f0f0;
}

/* Barre de recherche */
.search-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
}

.search-box {
    display: flex;
    gap: 10px;
    flex: 1;
    min-width: 250px;
}

.search-box input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    background: white;
    color: #333;
}

.search-box input::placeholder {
    color: #999;
}

.search-box input:focus {
    outline: none;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

#search-btn {
    padding: 10px 20px;
    background: white;
    color: #6580B6;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

#search-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Filtres de recherche */
.search-filters {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.filter-group label {
    font-weight: bold;
    white-space: nowrap;
    font-size: 13px;
}

.filter-group select,
.filter-group input {
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    font-size: 13px;
    min-width: 140px;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.5);
}

/* Contenu principal */
.bible-content {
    display: flex;
    gap: 20px;
    min-height: 600px;
}

/* Navigation des livres */
.bible-nav {
    flex: 0 0 250px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    border: 1px solid #ddd;
}

/* Filtres par testament */
.testament-filter {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 6px;
    border-left: 4px solid #6580B6;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    user-select: none;
}

.filter-label input[type="radio"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
    accent-color: #6580B6;
}

.filter-label:hover {
    color: #6580B6;
    font-weight: 500;
}

/* Menus de recherche rapide des livres */
.quick-search-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.quick-search-select {
    width: 100%;
    padding: 8px 10px;
    border: 2px solid #6580B6;
    border-radius: 4px;
    background-color: white;
    color: #333;
    font-size: 13px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.quick-search-select:hover {
    border-color: #8B6BA8;
    box-shadow: 0 0 5px rgba(101, 128, 182, 0.2);
}

.quick-search-select:focus {
    outline: none;
    border-color: #8B6BA8;
    box-shadow: 0 0 8px rgba(101, 128, 182, 0.3);
}

.books-section h3 {
    color: #6580B6;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    border-bottom: 2px solid #6580B6;
    padding-bottom: 10px;
}

.books-section h3:first-child {
    margin-top: 0;
}

.books-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    overflow: visible;
}

.book-item {
    margin: 5px 0;
}

.book-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    position: relative;
}

.book-item a {
    flex: 1;
    display: block;
    padding: 8px 12px;
    color: #6580B6;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 14px;
    position: relative;
}

.book-item a:hover {
    background: #e0e7ff;
    padding-left: 16px;
}

.book-item.active a {
    background: #6580B6;
    color: white;
    font-weight: bold;
    z-index: 1;
}

.chapters-dropdown {
    padding: 6px 8px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    background: white;
    color: #333;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 60px;
    position: relative;
    z-index: 10;
    flex-shrink: 0;
    pointer-events: auto;
}

.chapters-dropdown:hover {
    border-color: #6580B6;
    background: #f5f5f5;
}

.chapters-dropdown:focus {
    outline: none;
    border-color: #6580B6;
    box-shadow: 0 0 4px rgba(101, 128, 182, 0.3);
}

.book-item.active .chapters-dropdown {
    border-color: #6580B6;
    background: white;
    color: #333;
    font-weight: bold;
}

/* Contenu principal */
.bible-main {
    flex: 1;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.welcome-message {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.welcome-message h2 {
    color: #6580B6;
    font-size: 32px;
    margin-bottom: 20px;
}

.welcome-message p {
    font-size: 16px;
    line-height: 1.6;
}

/* Sélecteur de chapitre */
.chapter-selector {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.chapter-selector h2 {
    color: #6580B6;
    margin: 0 0 15px 0;
    font-size: 24px;
}

.chapters-nav {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.btn-prev, .btn-next {
    padding: 10px 20px;
    background: #6580B6;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-prev:hover, .btn-next:hover {
    background: #4a5a8a;
    transform: translateY(-2px);
}

.current-chapter {
    font-weight: bold;
    color: #6580B6;
    min-width: 150px;
    text-align: center;
}

/* Liste des versets */
.verses-list {
    margin-top: 20px;
}

/* Barre d'actions pour la sélection */
.selection-toolbar {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 15px;
    background: #f0f7ff;
    border-left: 4px solid #6580B6;
    border-radius: 4px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

#selection-count {
    font-weight: bold;
    color: #6580B6;
    flex: 1;
    min-width: 150px;
}

.btn-action {
    padding: 8px 15px;
    background: #6580B6;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-action:hover {
    background: #4a5f8a;
    box-shadow: 0 2px 6px rgba(101, 128, 182, 0.3);
}

.btn-action.btn-clear {
    background: #d9534f;
}

.btn-action.btn-clear:hover {
    background: #c9302c;
}

/* Conteneur "Tout sélectionner" */
.select-all-container {
    margin-bottom: 15px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 4px;
}

.select-all-container label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    user-select: none;
}

.select-all-container input[type="checkbox"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: #6580B6;
}

/* Versets */
.verse {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 15px 0;
    padding: 15px;
    background: #fafafa;
    border-left: 4px solid #6580B6;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.verse:hover {
    background: #f0f0f0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.verse.highlighted {
    border-left-color: #FFD700;
}

/* Checkbox du verset */
.verse-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin-top: 3px;
    accent-color: #6580B6;
    flex-shrink: 0;
}

.verse-ref {
    font-weight: bold;
    color: #6580B6;
    margin-right: 10px;
    font-size: 14px;
    flex-shrink: 0;
}

.verse-text {
    line-height: 1.8;
    color: black;
    font-size: 15px;
    margin: 0;
    flex: 1;
}

/* Couleurs de surligneur */
.verse.highlight-yellow {
    background: #FFFF99;
    border-left-color: #FFD700;
}

.verse.highlight-green {
    background: #C8E6C9;
    border-left-color: #66BB6A;
}

.verse.highlight-blue {
    background: #B3E5FC;
    border-left-color: #29B6F6;
}

.verse.highlight-pink {
    background: #F8BBD0;
    border-left-color: #EC407A;
}

.verse.highlight-orange {
    background: #FFE0B2;
    border-left-color: #FFA726;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    border-radius: 8px;
    width: 350px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.modal-content h3 {
    margin-top: 0;
    color: #6580B6;
}

.modal-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.modal-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.modal-section h4 {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 14px;
    font-weight: 600;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: black;
}

.color-picker {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.color-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.color-btn:hover {
    border-color: #6580B6;
    transform: scale(1.1);
}

.color-btn.remove {
    background: #ddd !important;
    width: auto;
    padding: 0 15px;
    font-weight: bold;
    color: #666;
}

.btn-copy-verse {
    width: 100%;
    padding: 12px;
    background: #6580B6;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-copy-verse:hover {
    background: #4a5f8a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(101, 128, 182, 0.3);
}

.btn-copy-verse:active {
    transform: translateY(0);
}

.loading {
    text-align: center;
    color: #999;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    /* Forcer le contrôle de débordement au niveau système */
    html, body {
        width: 100%;
        overflow-x: hidden !important;
    }

    .bible-container,
    .bible-header,
    .bible-content,
    .bible-nav,
    .bible-main,
    .verse,
    select,
    input,
    button {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    /* Forcer le wrapping de tous les flex containers */
    [style*="display: flex"] {
        flex-wrap: wrap !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    /* Éléments avec styles inline spécifiques */
    [style*="width: 210px"] {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
    }

    [style*="min-width: 350px"],
    [style*="min-width: 400px"] {
        max-width: 100% !important;
        width: auto !important;
        min-width: 0 !important;
        flex: 1 !important;
    }

    [style*="padding: 0 30px"] {
        padding: 8px !important;
    }

    /* Repositionner les boutons refresh et écouter en tablette/mobile */
    #bible-header1 > div[style*="position: absolute"] {
        position: static !important;
        bottom: auto !important;
        right: auto !important;
        z-index: auto !important;
        margin-top: 10px;
        justify-content: center;
        width: 100%;
    }

    /* Contenu principal */
    .bible-content {
        flex-direction: column;
        gap: 15px;
    }

    .bible-nav {
        flex: 1;
        max-height: 250px;
        padding: 15px;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .bible-main {
        flex: 1;
        padding: 15px;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }

    /* Header */
    .bible-header {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
        margin-bottom: 15px;
        border-radius: 4px;
    }

    .bible-header h2 {
        font-size: 20px;
        margin: 0;
    }

    .header-controls {
        display: flex;
        gap: 10px;
        align-items: stretch;
        flex-wrap: wrap;
        width: 100%;
    }

    .version-selector {
        flex: 1;
        min-width: 100px;
    }

    .version-selector select {
        width: 100%;
        min-width: auto;
        padding: 8px 10px;
        font-size: 13px;
    }

    .search-box {
        width: 100%;
        min-width: auto;
        gap: 8px;
        margin-top: 5px;
    }

    .search-box input {
        min-width: 0;
        padding: 10px 12px;
        font-size: 14px;
    }

    #search-btn {
        padding: 10px 15px;
        font-size: 13px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Filtres */
    .search-filters {
        flex-direction: column;
        gap: 10px;
    }

    .filter-group {
        width: 100%;
        flex-direction: column;
    }

    .filter-group label {
        font-size: 12px;
    }

    .filter-group select,
    .filter-group input {
        width: 100%;
        min-width: auto;
        font-size: 12px;
        padding: 8px 10px;
    }

    /* Navigation des chapitres */
    .chapter-selector h2 {
        font-size: 18px;
        margin: 0 0 10px 0;
    }

    .chapters-nav {
        flex-direction: column;
        gap: 8px;
        justify-content: stretch;
    }

    .btn-prev, .btn-next {
        width: 100%;
        padding: 10px 12px;
        font-size: 13px;
        margin: 0;
    }

    .current-chapter {
        width: 100%;
        padding: 8px;
        min-width: auto;
        text-align: center;
        font-size: 13px;
    }

    /* Versets */
    .verse {
        padding: 10px;
        margin: 8px 0;
        gap: 8px;
        flex-wrap: wrap;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .verse-ref {
        font-size: 12px;
        margin-right: 5px;
        min-width: 0;
        word-break: break-word;
    }

    .verse-text {
        font-size: 14px;
        line-height: 1.6;
        margin: 0;
        width: 100%;
        word-break: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }

    .verse-checkbox {
        min-width: 18px;
        width: 18px;
        height: 18px;
        margin-top: 2px;
    }

    /* Barre d'actions */
    .selection-toolbar {
        flex-direction: column;
        gap: 8px;
        padding: 10px;
        margin-bottom: 15px;
    }

    #selection-count {
        width: 100%;
        min-width: auto;
        font-size: 13px;
    }

    .btn-action {
        width: 100%;
        padding: 10px;
        font-size: 12px;
    }

    /* Modal */
    .modal-content {
        width: calc(100% - 30px);
        max-width: 350px;
        margin: 50% auto;
        padding: 15px;
        font-size: 13px;
    }

    .modal-section h4 {
        font-size: 12px;
    }

    .color-picker {
        gap: 8px;
    }

    .color-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    /* Textes generaux */
    .welcome-message h2 {
        font-size: 24px;
    }

    .welcome-message p {
        font-size: 14px;
    }

    /* Livres list */
    .book-item a {
        padding: 6px 10px;
        font-size: 13px;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .quick-search-select {
        width: 100%;
        font-size: 12px;
        padding: 8px 10px;
    }

    /* Résultats de recherche */
    .search-results-header {
        padding: 12px;
        margin-bottom: 12px;
    }

    .search-result-item {
        padding: 12px;
        margin-bottom: 10px;
    }

    .result-reference {
        font-size: 12px;
        margin-bottom: 8px;
        color: #1E40AF;
    }

    .result-text {
        font-size: 13px;
        margin-bottom: 10px;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .btn-goto {
        width: 100%;
        padding: 10px;
        font-size: 12px;
    }

    /* Pagination mobile */
    .search-pagination {
        margin-top: 20px;
        padding-top: 15px;
    }

    .pagination-controls {
        gap: 5px;
    }

    .btn-pagination {
        padding: 8px 12px;
        font-size: 11px;
        flex: 1;
        min-width: 70px;
    }

    .pagination-numbers {
        gap: 3px;
    }

    .btn-page {
        min-width: 32px;
        padding: 6px 8px;
        font-size: 11px;
    }

    .pagination-info {
        font-size: 12px;
    }

    .results-pagination-info {
        font-size: 12px;
    }
}
/* Résultats de recherche */
.search-results-header {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 5px solid #6580B6;
}

.search-results-header h3 {
    margin: 0 0 10px 0;
    color: #6580B6;
}

.results-count {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.search-results {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.search-result-item {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.search-result-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #6580B6;
}

.result-reference {
    color: #1E40AF;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 10px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 4px;
    display: inline-block;
    transition: all 0.2s ease;
    background: rgba(30, 64, 175, 0.1);
}

.result-reference:hover {
    background: rgba(30, 64, 175, 0.2);
    color: #0D25B8;
    transform: translateX(3px);
    box-shadow: 0 2px 6px rgba(30, 64, 175, 0.4);
    text-decoration: underline;
}

.result-text {
    color: #333;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 15px;
}

.result-text mark {
    background: #FFFF00;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: bold;
    color: #000;
}

.btn-goto {
    background: #6580B6;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-goto:hover {
    background: #8B6BA8;
    transform: translateX(5px);
}

.no-results {
    text-align: center;
    color: #999;
    padding: 40px 20px;
    font-size: 16px;
}

/* Styles pour la pagination des résultats de recherche */
.search-pagination {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-pagination {
    padding: 10px 15px;
    background: #1E40AF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-pagination:hover:not(:disabled) {
    background: #0D25B8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.4);
}

.btn-pagination:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.pagination-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.btn-page {
    min-width: 40px;
    padding: 8px 12px;
    background: white;
    color: #1E40AF;
    border: 2px solid #1E40AF;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 13px;
}

.btn-page:hover {
    background: #1E40AF;
    color: white;
    transform: scale(1.1);
}

.btn-page.active {
    background: #1E40AF;
    color: white;
    cursor: default;
    box-shadow: 0 2px 6px rgba(30, 64, 175, 0.4);
}

.pagination-ellipsis {
    padding: 0 5px;
    color: #999;
    font-weight: bold;
}

.pagination-info {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin: 0;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 4px;
}

.results-pagination-info {
    font-size: 13px;
    color: #666;
    margin: 10px 0 0 0;
    padding: 8px 0;
}

/* Media query pour les très petits écrans (téléphones) */
@media (max-width: 480px) {
    /* Renforcer le contrôle de débordement */
    .bible-container,
    .bible-header,
    .bible-content,
    .bible-nav,
    .bible-main,
    .verse,
    select,
    input,
    button {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    [style*="display: flex"] {
        flex-wrap: wrap !important;
        gap: 6px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .bible-header {
        padding: 12px;
        margin-bottom: 10px;
    }

    .bible-header h2 {
        font-size: 18px;
    }

    .header-controls {
        gap: 8px;
    }

    .version-selector select {
        font-size: 12px;
        padding: 6px 8px;
    }

    .search-box input {
        font-size: 13px;
        padding: 8px 10px;
    }

    #search-btn {
        padding: 8px 12px;
        font-size: 12px;
    }

    .bible-main {
        padding: 10px;
    }

    .chapter-selector h2 {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .btn-prev, .btn-next {
        padding: 8px 10px;
        font-size: 12px;
    }

    .verse {
        padding: 8px;
        margin: 6px 0;
        gap: 6px;
    }

    .verse-ref {
        font-size: 11px;
        margin-right: 4px;
    }

    .verse-text {
        font-size: 13px;
        line-height: 1.5;
    }

    .verse-checkbox {
        width: 16px;
        height: 16px;
        min-width: 16px;
    }

    .selection-toolbar {
        padding: 8px;
        gap: 6px;
    }

    .btn-action {
        padding: 8px;
        font-size: 11px;
    }

    .modal-content {
        width: calc(100% - 20px);
        margin: 40% auto;
        padding: 12px;
    }

    .book-item a {
        padding: 5px 8px;
        font-size: 12px;
    }

    .quick-search-select {
        font-size: 11px;
        padding: 6px 8px;
    }

    .search-result-item {
        padding: 10px;
    }

    .result-text {
        font-size: 12px;
    }

    .no-results {
        padding: 20px 10px;
        font-size: 13px;
    }

    /* Pagination très petit mobile */
    .btn-pagination {
        padding: 6px 8px;
        font-size: 10px;
        min-width: 60px;
    }

    .btn-page {
        min-width: 28px;
        padding: 4px 6px;
        font-size: 10px;
    }

    .pagination-info {
        font-size: 11px;
    }

    .results-pagination-info {
        font-size: 11px;
    }

    /* Repositionner les boutons refresh et écouter en mobile */
    #bible-header1 > div[style*="position: absolute"] {
        position: relative !important;
        bottom: auto !important;
        right: auto !important;
        z-index: auto !important;
        margin-top: 10px;
        justify-content: center;
    }
}