input, button, select, textarea {
    -webkit-appearance: none; 
    -moz-appearance: none;    
    appearance: none;         
    border-radius: 0;         
}

body {
    background-color: #FAFAFA;
    overflow-x: hidden; 
    margin: 0;
    padding: 0;
}

.liste-container {
    max-width: 1200px;
    margin: 100px auto 50px;
    padding: 0 20px;
    font-family: 'Poppins', sans-serif;
    width: 100%; 
    box-sizing: border-box; 
}

.header-section {
    text-align: center;
    margin-bottom: 30px;
}

.little-dash {
    width: 50px;
    height: 4px;
    background-color: #D15E84;
    margin: 0 auto 20px;
    border-radius: 2px;
}

.header-section h1 {
    font-size: 24px;
    font-weight: 700;
    color: #1e1e1e;
    line-height: 1.3;
}

.search-bar-wrapper {
    position: relative;
    max-width: 700px;
    width: 100%;
    margin: 0 auto 50px;
    box-sizing: border-box;
}

.search-bar-wrapper input {
    width: 100%;
    padding: 15px 20px 15px 50px; 
    border-radius: 50px;
    border: 2px solid #1e1e1e;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: 0.3s;
    box-sizing: border-box; 
}

.search-bar-wrapper input:focus {
    border-color: #D15E84;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.search-btn {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.manga-selector {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
    overflow: hidden; 
}

.manga-selector h2 {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #1e1e1e;
}

.carousel-relative-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    height: 320px; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.manga-carousel-container {
    display: flex;
    align-items: center;
    gap: 40px;
    overflow-x: auto;
    scroll-behavior: smooth;
    width: 100%;
    height: 100%;
    padding: 40px calc(50% - 90px); 
    scrollbar-width: none; 
    -ms-overflow-style: none;
    box-sizing: border-box;
}
.manga-carousel-container::-webkit-scrollbar { display: none; }

.manga-card {
    flex: 0 0 auto;
    width: 160px;
    height: 240px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    transform: scale(0.8);
    opacity: 0.5;
    filter: blur(2px);
    z-index: 1;
}

.manga-cover {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border: 4px solid transparent;
}

.manga-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.manga-card.active {
    transform: scale(1.1);
    opacity: 1;
    filter: blur(0);
    z-index: 10;
}

.manga-card.active .manga-cover {
    border-color: #7b2cbf;
    box-shadow: 0 15px 40px rgba(123, 44, 191, 0.4);
}

.all-mangas {
    background: #2d3436;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    text-transform: uppercase;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: 1px solid #ddd;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    color: #7b2cbf;
    font-size: 24px;
    cursor: pointer;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}
.carousel-btn:hover {
    background: #7b2cbf; color: white; transform: translateY(-50%) scale(1.1);
}
.btn-left { left: 10px; }
.btn-right { right: 10px; }

.filters-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap; 
    width: 100%;
}

.filter-select {
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background-color: #F7E2B8;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    cursor: pointer;
    min-width: 150px;
    flex: 1; 
    max-width: 250px; 
    text-align: center;
}

.recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
    width: 100%;
}

.recipe-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    border: 1px solid transparent;
}

.recipe-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-color: #F7E2B8;
}

.card-image-circle {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    border: 5px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card-image-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.recipe-card:hover .card-image-circle img { transform: scale(1.1); }

.card-infos h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #1e1e1e;
}

.anime-tag {
    font-size: 13px; color: #D15E84; font-weight: 600; margin-bottom: 10px; text-transform: uppercase;
}


@media (max-width: 950px) {

    .liste-container {
        margin-top: 80px;
        padding: 0 15px; 
    }

    .header-section h1 { font-size: 20px; padding: 0 10px; }

    .manga-selector h2 { font-size: 18px; margin-bottom: 20px; }

    .carousel-relative-container { height: 260px; }

    .manga-carousel-container {
        scroll-snap-type: x mandatory;
        
        padding: 0 calc(50% - 70px);
        
        gap: 60vw; 
    }

    .manga-card {
        width: 140px !important;
        min-width: 140px !important;
        height: 200px !important;
        
        scroll-snap-align: center;
        scroll-snap-stop: always;
        
        opacity: 0.3;
        transform: scale(0.9);
    }

    .manga-card.active {
        opacity: 1;
        transform: scale(1.1); 
    }

    .carousel-btn {
        width: 40px; height: 40px; font-size: 18px;
        background: rgba(255,255,255,0.9);
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }
    .btn-left { left: 0; }
    .btn-right { right: 0; }

    .filters-row {
        flex-direction: column; 
        gap: 15px;
        padding: 0; 
    }
    .filter-select { 
        width: 100%; 
        max-width: 100%; 
    }

    .recipes-grid {
        grid-template-columns: 1fr; 
        gap: 30px;
    }
    
    .recipe-card {
        width: 100%; 
        box-sizing: border-box;
    }
}