body {
    background-color: #f2f5f4;
    color: #3a3a3a;
    font-family: 'Arial', sans-serif;
}

header {
    background: #0b910b url('Image/rainbow.jpg') no-repeat center center;
    background-size: cover;
    color: #fff;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
}

.centered-text {
    text-align: center;
    margin-top: 10px;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
}

nav a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    font-family: 'Arial', sans-serif;
    font-size: 15px;
    padding: 10px 15px;
    transition: background-color 0.3s;
    border-radius: 5px;
}

nav a:hover {
    background-color: #45a049;
}

.bouton-submit {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 4px;
}

.bouton-submit:hover {
    background-color: #45a049;
}

.search-form {
    background-color: #ffffff;
    padding: 20px;
    margin-top: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

form {
    margin-bottom: 20px;
}

form label {
    display: block;
    margin-bottom: 10px;
    color: #4CAF50;
}

form input[type="text"] {
    width: 90%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 25px;
    margin-bottom: 10px;
}

form input[type="submit"] {
    background-color: #4CAF50;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

form input[type="submit"]:hover {
    background-color: #45a049;
}

.container {
    max-width: 1300px;
    margin: 20px auto;
    background-color: #edf7ed;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

#main {
    padding: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

li {
    background-color: #fff;
    margin: 0 10px 30px;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    flex: 0 0 calc(20% - 15px);
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.emprunt-container {
    margin-top: auto;
    align-self: center;
}

.favorite-text {
    font-style: italic;
    font-size: 0.9em;
}

li:hover {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.img-container {
    position: relative;
    overflow: hidden;
    margin-bottom: 10px;
    border-radius: 15px;
}

.img-container img {
    max-width: 100%;
    height: 300px;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.img-container:hover img {
    transform: scale(1.05);
}

.toggle-more {
    background-color: transparent;
    color: #4CAF50;
    border: none;
    margin-bottom: 15px;
    cursor: pointer;
    transition: color 0.3s ease, text-decoration 0.3s ease, font-weight 0.3s ease;
    font-weight: bold;
    text-decoration: underline;
}

.toggle-more:hover {
    color: #45a049;
    text-decoration: none;
}

.deconnexion {
    text-align: center;
}

.nom {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: large;
    margin-bottom: 15px;
}

.bandeau-arrivages {
    background-color: hsl(122, 33%, 65%);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.bandeau-arrivages h3 {
    margin: 0 0 10px 0;
    font-size: 1.5em;
    font-family: 'Arial', sans-serif;
    max-width: 50px;
}

.arrivages-livres {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.arrivages-livres li {
    background-color: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    list-style: none;
    flex: 1 1 calc(33.333% - 60px); /* Prend 33% de la largeur moins la marge */
    max-width: 200px;
    text-align: center;
}

.arrivages-livres img {
    max-width: 100%;
    height: auto;
    border-radius: 2px;
    margin-bottom: 2px;
}

.arrivages-livres .nom {
    font-weight: bold;
    color: #000;
    margin: 5px 0;
}

.arrivages-livres .auteur {
    color: #888;
    margin: 5px 0;
}


