body {
    font-family: sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

header {
    background: #333;
    color: #fff;
    padding: 1rem 0;
    text-align: center;
}

header h1 {
    margin: 0;
}

nav {
    text-align: center;
    padding: 1rem 0;
    background: #eee;
    margin-bottom: 2rem;
}

.nav-btn {
    display: inline-block;
    background: #3498db;
    color: #fff;
    padding: 0.7rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.nav-btn:hover {
    background: #2980b9;
}

main {
    padding: 2rem;
    max-width: 800px;
    margin: auto;
}

.book-list {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.book-item {
    border-bottom: 1px solid #ccc;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.book-item:last-child {
    border-bottom: none;
}

.download-btn {
    display: inline-block;
    background: #5cb85c;
    color: #fff;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
}

.download-btn:hover {
    background: #4cae4c;
}

.download-btn-pending {
    display: inline-block;
    background: #aaa;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    margin-top: 10px;
    cursor: not-allowed;
}

.form-section {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

footer {
    text-align: center;
    padding: 1rem 0;
    background: #333;
    color: #fff;
    position: relative;
    width: 100%;
    margin-top: 2rem;
}
/* Styles pour la barre de recherche */
.search-container {
    padding: 1rem 2rem;
    text-align: center;
}

#search-bar {
    width: 100%;
    max-width: 600px;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box; /* S'assure que le padding n'augmente pas la largeur */
}

/* Styles pour les images de couverture */
.book-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem; /* Espace entre l'image et le texte */
}

.book-cover-container {
    flex-shrink: 0;
}

.book-cover-container img {
    width: 120px; /* Taille de l'image de couverture */
    height: auto;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.book-info {
    flex-grow: 1;
}

/* Ajustement pour les petits écrans */
@media (max-width: 600px) {
    .book-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}
/* Styles pour l'infobulle */
.tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 250px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%; /* Position au-dessus du livre */
    left: 50%;
    margin-left: -125px; /* Centre la bulle */
    opacity: 0;
    transition: opacity 0.3s;
}

/* Flèche de l'infobulle */
.tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}

/* Afficher la bulle au survol */
.book-item:hover .tooltip .tooltip-text {
    visibility: visible;
    opacity: 1;
}
