.materiautheque-list { 
    max-width: 900px; 
    margin: 2rem auto; 
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}
.materiautheque-item {
    margin-left: 50px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    flex-direction: column;
    width: 250px;
    max-width: 100%;
    position: relative;
}
.materiautheque-item img {
    border-radius: 5px 5px 0 0;
    width: 100%;
    object-fit: cover;
    max-height: 200px;
    background: #eee;
}
.materiautheque-info {
    width: 100%;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    flex-direction: column;
}
.materiautheque-main-link{
    width: 100%;
    text-decoration: none;
}
.materiautheque-title {
    font-size: 1.7rem;
    color: #008D6B;
    margin: 0 0 0.3em 0;
    font-weight: bold;
    text-align: center;
}
.materiautheque-type {
    background: #f5f5f5;
    color: #111;
    padding: 5px 7px;
    display: inline-block;
    line-height: 15px;
    font-weight: 400;
    font-size: 14px;
    border-radius: 4px;
}
.materiautheque-price {
    color: #222;
    font-size: 1.05em;
    margin-bottom: 0.3em;
}
.materiautheque-quantite {
    font-size: 0.98em;
    font-weight: bold;
    color: #222;
}
.materiautheque-dispo.dispo { color: #008D6B; }
.materiautheque-dispo.indispo { color: #b02d2d; }
.search-bar {
    max-width: 900px;
    margin: 2rem auto 1.5rem auto;
    display: flex;
}
.search-bar input[type="text"] {
    flex: 1;
    padding: 0.7em 1em;
    border-radius: 6px 0 0 6px;
    border: 1px solid #b6c5b9;
    font-size: 1.05em;
    outline: none;
}
.search-bar button {
    padding: 0.7em 1.3em;
    border-radius: 0 6px 6px 0;
    border: none;
    background: #008D6B;
    color: #fff;
    font-weight: bold;
    font-size: 1.05em;
    cursor: pointer;
}
.search-bar button:hover {
    background: #256b4d;
}
.search-bar .btn-primary{
    margin-left: 20px;
}
.btn-primary {
    display: inline-block;
    padding: 0.7em 1.3em;
    border-radius: 6px;
    border: none;
    background: #008D6B;
    color: #fff;
    font-weight: bold;
    font-size: 1.05em;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    text-align: center;
}
.btn-primary:hover,
.btn-primary:focus {
    background: #256b4d;
    outline: none;
    color: #fff;
    text-decoration: none;
}

.edit-container{
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.edit-container .btn-primary{
    width: 50%;
    border-radius: 0;
}