@import 'color-rosy.css';
    
/* Styles pour les icônes Lucide */
[data-lucide] {
    display: inline-block;
    vertical-align: middle;
    width: 1em;
    height: 1em;
}

/* Assurer que les icônes Lucide héritent de la couleur du texte */
[data-lucide] svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    width: 100%;
    height: 100%;
}

.front{
    font-family: "Literata", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    background-color: #000;

    .front .card {
        background-color: #000;
    }

    .container {
        max-width: 640px !important;
    }

    .btn.btn-catalog {
        padding: 0 10px 2px 10px;
        font-size: .5em;
        margin-bottom: 2px;
        margin-left: 15px;
        border-radius: 20px;
    }

    .navbar-brand {
        line-height: 30px;
        font-size: 30px;
    }

    .navbar-nav a.nav-link {
        font-size: 1.2em;
        border-top: 3px solid #da3928;
        padding: 1em 0;
        text-transform: uppercase;
        font-weight: 300;
    }

    .navbar-nav:last-child {
        border-bottom: 3px solid #da3928;
    }

    footer {
        font-size: .8em;
    }
    
}

/* ========== Catalogue / Slider type Netflix (réutilisable) ========== */
.catalog-container {
    padding: 20px 0;
}

.category-row {
    margin-bottom: 40px;
}

.category-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #fff;
}

.books-slider {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.books-slider::-webkit-scrollbar {
    display: none;
}

.books-slider::-webkit-scrollbar-track {
    background: #2d2d2d;
    border-radius: 4px;
}

.books-slider::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

.books-slider::-webkit-scrollbar-thumb:hover {
    background: #777;
}

.book-cover {
    flex: 0 0 calc((100% - 45px) / 3.333333);
    min-width: 0;
    aspect-ratio: 1 / 1.6;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.book-cover:hover {
    transform: scale(1.05);
    z-index: 10;
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

/* Wrapper pour chevrons + slider (desktop uniquement) */
.category-slider-wrapper {
    position: relative;
}

.slider-chevron {
    display: none;
}

@media (min-width: 992px) {
    .slider-chevron {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 52px;
        min-width: 52px;
        z-index: 20;
        background: linear-gradient(to right, rgba(0,0,0,0.85), transparent);
        border: none;
        color: #fff;
        cursor: pointer;
        opacity: 0.9;
        transition: opacity 0.2s ease, background 0.2s ease;
    }
    .slider-chevron:hover {
        opacity: 1;
        background: linear-gradient(to right, rgba(0,0,0,0.95), transparent);
    }
    .slider-chevron.slider-chevron-right {
        left: auto;
        right: 0;
        background: linear-gradient(to left, rgba(0,0,0,0.85), transparent);
    }
    .slider-chevron.slider-chevron-right:hover {
        background: linear-gradient(to left, rgba(0,0,0,0.95), transparent);
    }
    .slider-chevron:disabled {
        opacity: 0;
        pointer-events: none;
    }
    .category-slider-wrapper:hover .slider-chevron:not(:disabled) {
        opacity: 1;
    }
}