body {
    font-family: Arial, sans-serif;
    margin: 0;
    overscroll-behavior-y: contain;
    transition: opacity 0.3s ease;
    padding: 10px;
    line-height: 1.6;
}

.bible-nav {
    background-color: #f8f9fa;
    padding: 8px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
}

.selector-with-nav {
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: center;
}

select {
    padding: 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: white;
    text-align: center;
    text-align-last: center;
    -moz-text-align-last: center;
    -webkit-text-align-last: center;
}

.search-frame {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

select option {
    text-align: center;
}

select option[disabled] {
    color: #666;
    font-style: italic;
}

.bible-version-select {
    width: 90px;
}

#book-select {
    width: 85px;
}

#chapter-select {
    width: 65px;
}

.nav-button {
    padding: 4px 8px;
    border: 1px solid #ddd;
    background-color: #3498db;
    border-radius: 4px;
    cursor: pointer;
    font-size: 20px;
    min-width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.nav-button:hover {
    background-color: #f0f0f0;
}

#bible-content {
    max-width: 1200px;
    min-height: 600px;
    margin: 20px auto;
    padding: 30px;
    background-color: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.8;
}

/* Styles pour la palette de couleurs */
.highlight-palette {
    background-color: #f8f9fa;
    padding: 8px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
    display: none; /* Caché par défaut */
    transition: transform 0.3s ease;
}

.palette-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.palette-title {
    font-size: 14px;
    font-weight: bold;
}

.color-option {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.color-option:hover {
    transform: scale(1.1);
}

.color-option.active {
    border: 2px solid #333;
}

/* Styles pour les versets */
#bible-content p {
    cursor: pointer;
    padding: 3px 0;
    border-radius: 3px;
    transition: background-color 0.2s;
}

#bible-content p:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

#bible-content p.selected {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Styles pour les versets surlignés */
.verse-highlight-yellow {
    background-color: rgba(255, 255, 0, 0.5) !important;
}

.verse-highlight-green {
    background-color: rgba(144, 238, 144, 0.5) !important;
}

.verse-highlight-blue {
    background-color: rgba(135, 206, 250, 0.5) !important;
}

.verse-highlight-pink {
    background-color: rgba(255, 182, 193, 0.5) !important;
}

.verse-highlight-orange {
    background-color: rgba(255, 165, 0, 0.5) !important;
}
@media screen and (min-width: 769px) {
    .bible-version-select {
        width: 200px !important;
        font-size: 16px !important;
        padding: 6px !important;
    }
}

@media screen and (max-width: 768px) and (orientation: portrait) {
    .bible-version-select {
        width: 90px !important;
        font-size: 14px !important;
    }
        
    .nav-button {
        font-size: 18px;
        min-width: 32px;
        height: 32px;
        padding: 3px 6px;
    }

    .color-option {
        width: 20px;
        height: 20px;
    }
}

@media screen and (max-width: 768px) and (orientation: landscape) {
    .bible-version-select {
        width: 200px !important;
        font-size: 16px !important;
        padding: 6px !important;
    }
        
    .selector-with-nav {
        gap: 10px !important;
    }
}

@media screen and (max-width: 768px) {
    #bible-content {
        max-width: 95%;
        padding: 15px;
        min-height: 400px;
    }
    
    /* Ajuster le padding en bas pour laisser de la place pour la palette */
    body {
        padding-bottom: 60px;
    }
}