body {
    font-family: "Inter", sans-serif;
    text-align: justify;
}

/* COULEURS */
a {
    color: #000;
}

.btn-custom {
    color: whitesmoke;
    background-color: #b57cff;
}

.btn-outline-custom {
    color: #b57cff;
    border: 1px solid #b57cff;
    background-color: transparent;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
        border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.btn-outline-custom:hover {
    color: #fff;
    background-color: #b57cff;
    border-color: #b57cff;
}

.main-color {
    color: #b57cff;
}

.second-color {
    background-color: rgba(181, 124, 255, 0.5);
}

/* LOGO */
.svg {
    height: 100px;
}

/* POLICE */
.inter {
    font-family: "Inter", sans-serif;
}

.quando {
    font-family: "Quando", serif;
}

/* FIN TITRE */

/* SEARCHBAR */
.search-container {
    width: 100%;
    max-width: 900px;
    border-radius: 50px;
    border: 1px solid #ddd;
    padding: 5px;
    display: flex;
    align-items: center;
    background-color: #fff;
}

.search-input {
    border: none;
    outline: none;
    flex: 1;
    padding-left: 15px;
    border-radius: 50px;
}

.search-btn {
    background-color: #c49ce1;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.search-btn i {
    color: rgb(255, 255, 255);
    font-size: 16px;
}

.search-btn hover {
    background-color: #000 !important;
}

.search-container:focus-within {
    border-color: #c49ce1;
}

.search-input::placeholder {
    color: #888;
}

/* FIN SEARCHBAR */

/* SIDEBAR */
body {
    height: 100vh;
}

.sf-toolbar {
    position: fixed;
}

.sidebar {
    min-height: 100vh;
    width: 220px;
    background-color: #f8f9fa;
    padding-top: 20px;
    padding-left: 10px;
    position: fixed;
}

.sidebar .logo {
    display: flex;
    align-items: center;
    padding-left: 10px;
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 20px;
}

.sidebar .logo img {
    width: 40px;
    margin-right: 10px;
}

.category-title {
    font-weight: 600;
    color: #777;
    margin-bottom: 15px;
    font-size: 14px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 10px 0;
    color: #555;
    text-decoration: none;
    font-size: 16px;
}

.nav-link i {
    font-size: 20px;
    margin-right: 10px;
    color: #555;
}

.nav-link:hover {
    background-color: #f0f0f0;
    border-radius: 8px;
}

.nav-item {
    margin-bottom: 10px;
}

.content {
    margin-left: 240px;
    padding: 20px;
}

/* FIN SIDEBAR */

/* HI, ADMIN */
.profile-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
}

.profile-container h4 {
    margin: 0;
    font-size: 24px;
    font-family: "Quando", serif;
}

.profile-container img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.logout-btn i {
    font-size: 24px;
    color: #b57cff;
}

.btn-outline-custom {
    border-color: #b57cff;
    color: #b57cff;
}

.btn-outline-custom:hover {
    background-color: #b57cff;
    color: white;
}

/* FIN HI, ADMIN */

.img-fixed {
    height: 500px;
    object-fit: cover;
    width: 100%;
}

.left-column {
    width: 280px;
}

.main-content {
    margin-left: 280px;
    margin-right: 20%;
}

.right-column {
    width: 20%;
}

.logo-container {
    text-align: center;
    padding-top: 20px;
    display: none;
}

.book-cover {
    height: 450px;
    padding: 5px;
    border-radius: 30px;
    width:300px;
}

.book-cover-category{
    height: 450px;
}

.custom-navbar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #000;
    border-radius: 30px;
    padding: 10px 20px;
    display: flex;
    justify-content: space-around;
    width: 80%;
    max-width: 400px;
}

.search-container-show {
    display: none;
}

.show {
    display: none;
}

.book-card {
    width: 1000px;
    margin: 0 auto;
}

.like-card {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 1rem;
    display: flex;
    align-items: center;
}

.text-truncate-multiline {
    display: -webkit-box;
    /* activer la troncature avec Webkit */
    -webkit-line-clamp: 3;
    /* tronque après 3 lignes */
    -webkit-box-orient: vertical;
    /* troncature multi-lignes */
    overflow: hidden;
    /* masque le texte en trop */
    text-overflow: ellipsis;
    /* affiche les ... */
    line-height: 1.5em;
    /* ajuste l'interligne */
    max-height: 4.5em;
}

/* Responsive pour tablettes */
@media (max-width: 1270px) {

    .left-column,
    .right-column {
        width: 200px;
    }

    .main-content {
        margin-left: 200px;
        margin-right: 200px;
    }

    .hide-t {
        display: none;
    }

    .book-card {
        max-width: 500px;
        height: auto;
        overflow: hidden;
        position: relative;
    }
}

/* Responsive pour smartphones */
@media (max-width: 670px) {

    .left-column,
    .right-column {
        display: none !important;
    }

    .main-content {
        width: 100%;
        margin: 0;
        padding: 200px;
    }

    .logo-container {
        display: block;
    }

    .show {
        display: flex;
    }

    .book-card {
        width: 300px;
    }

    /*  BOOK SHOW + CATEGORY SHOW */
    .book-cover-container {
        display: flex;
    }

    .book-cover {
        height: 400px;
        margin: auto;
    }

    .card-body {
        text-align: center;
    }

    .hide {
        display: none;
    }

}

/* FIN RESPONSIVE */